Skip to content

Commit d558a1a

Browse files
committed
Merge branch '2.0.x'
2 parents 6b37d87 + a12a6f2 commit d558a1a

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/ManagementServerProperties.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import java.net.InetAddress;
2020

21-
import org.springframework.boot.autoconfigure.security.SecurityPrerequisite;
2221
import org.springframework.boot.autoconfigure.web.ServerProperties;
2322
import org.springframework.boot.context.properties.ConfigurationProperties;
2423
import org.springframework.boot.context.properties.NestedConfigurationProperty;
@@ -36,7 +35,7 @@
3635
* @see ServerProperties
3736
*/
3837
@ConfigurationProperties(prefix = "management.server", ignoreUnknownFields = true)
39-
public class ManagementServerProperties implements SecurityPrerequisite {
38+
public class ManagementServerProperties {
4039

4140
/**
4241
* Management endpoint HTTP port (uses the same port as the application by default).

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/EndpointIdTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ public void equalsAndHashCode() {
8989
EndpointId five = EndpointId.of("barfoo1");
9090
EndpointId six = EndpointId.of("foobar2");
9191
assertThat(one.hashCode()).isEqualTo(two.hashCode());
92-
assertThat(one).isEqualTo(one).isEqualTo(two).isEqualTo(two).isEqualTo(three)
93-
.isEqualTo(four).isNotEqualTo(five).isNotEqualTo(six);
92+
assertThat(one).isEqualTo(one).isEqualTo(two).isEqualTo(three).isEqualTo(four)
93+
.isNotEqualTo(five).isNotEqualTo(six);
9494
}
9595

9696
@Test

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/SecurityPrerequisite.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,9 @@
2121
* configuration is evaluated.
2222
*
2323
* @author Dave Syer
24+
* @deprecated since 2.0.6 since security prerequisites are not supported in Spring Boot 2
2425
*/
26+
@Deprecated
2527
public interface SecurityPrerequisite {
2628

2729
}

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/SecurityProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @author Madhura Bhave
3838
*/
3939
@ConfigurationProperties(prefix = "spring.security")
40-
public class SecurityProperties implements SecurityPrerequisite {
40+
public class SecurityProperties {
4141

4242
/**
4343
* Order applied to the WebSecurityConfigurerAdapter that is used to configure basic

0 commit comments

Comments
 (0)