Skip to content

Commit 9025d1d

Browse files
committed
Fix deprecation warning
See gh-28851
1 parent 504c4a3 commit 9025d1d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import org.springframework.security.config.BeanIds;
3535
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
3636
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
37-
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
3837
import org.springframework.security.web.SecurityFilterChain;
3938
import org.springframework.security.web.access.WebInvocationPrivilegeEvaluator;
4039

@@ -45,13 +44,12 @@
4544
*/
4645
@Configuration(proxyBeanMethods = false)
4746
@ConditionalOnWebApplication(type = Type.SERVLET)
48-
@SuppressWarnings("deprecation")
4947
class SpringBootWebSecurityConfiguration {
5048

5149
/**
5250
* The default configuration for web security. It relies on Spring Security's
5351
* content-negotiation strategy to determine what sort of authentication to use. If
54-
* the user specifies their own {@link WebSecurityConfigurerAdapter} or
52+
* the user specifies their own {@code WebSecurityConfigurerAdapter} or
5553
* {@link SecurityFilterChain} bean, this will back-off completely and the users
5654
* should specify all the bits that they want to configure as part of the custom
5755
* security configuration.

0 commit comments

Comments
 (0)