Skip to content

Commit 14f46f3

Browse files
committed
Merge branch '3.4.x'
Closes gh-45154
2 parents 9ced859 + 5a3fc4a commit 14f46f3

File tree

2 files changed

+4
-1
lines changed
  • spring-boot-project

2 files changed

+4
-1
lines changed

Diff for: spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/security/servlet/ManagementWebSecurityAutoConfigurationTests.java

+2
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ private HttpStatus getResponseStatus(AssertableWebApplicationContext context, St
216216
static class CustomSecurityConfiguration {
217217

218218
@Bean
219+
@SuppressWarnings("removal")
219220
SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
220221
http.authorizeHttpRequests((requests) -> {
221222
requests.requestMatchers(new AntPathRequestMatcher("/foo")).permitAll();
@@ -245,6 +246,7 @@ static class TestRemoteDevToolsSecurityFilterChainConfig extends TestSecurityFil
245246

246247
@Bean
247248
@Order(SecurityProperties.BASIC_AUTH_ORDER - 1)
249+
@SuppressWarnings("removal")
248250
SecurityFilterChain testRemoteDevToolsSecurityFilterChain(HttpSecurity http) throws Exception {
249251
http.securityMatcher(new AntPathRequestMatcher("/**"));
250252
http.authorizeHttpRequests((requests) -> requests.anyRequest().anonymous());

Diff for: spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/Image.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import com.fasterxml.jackson.databind.JsonNode;
2727

2828
import org.springframework.boot.buildpack.platform.json.MappedObject;
29+
import org.springframework.util.StringUtils;
2930

3031
/**
3132
* Image details as returned from {@code Docker inspect}.
@@ -97,7 +98,7 @@ public List<LayerId> getLayers() {
9798
* @return the image OS
9899
*/
99100
public String getOs() {
100-
return (this.os != null) ? this.os : "linux";
101+
return (!StringUtils.hasText(this.os)) ? this.os : "linux";
101102
}
102103

103104
/**

0 commit comments

Comments
 (0)