Remove redundant deprecation suppressions
Closes gh-27415
This commit is contained in:
@@ -29,7 +29,6 @@ import org.springframework.util.Assert;
|
||||
* @author Eddú Meléndez
|
||||
* @author Sebastien Deleuze
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
final class CacheConfigurations {
|
||||
|
||||
private static final Map<CacheType, String> MAPPINGS;
|
||||
|
||||
@@ -43,7 +43,6 @@ class ResourceChainResourceHandlerRegistrationCustomizer implements ResourceHand
|
||||
configureResourceChain(properties, registration.resourceChain(properties.isCache()));
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private void configureResourceChain(Resources.Chain properties, ResourceChainRegistration chain) {
|
||||
Resources.Chain.Strategy strategy = properties.getStrategy();
|
||||
if (properties.isCompressed()) {
|
||||
|
||||
@@ -113,7 +113,6 @@ public class WebFluxAutoConfiguration {
|
||||
public static class WelcomePageConfiguration {
|
||||
|
||||
@Bean
|
||||
@SuppressWarnings("deprecation")
|
||||
public RouterFunctionMapping welcomePageRouterFunctionMapping(ApplicationContext applicationContext,
|
||||
WebFluxProperties webFluxProperties, WebProperties webProperties) {
|
||||
String[] staticLocations = webProperties.getResources().getStaticLocations();
|
||||
@@ -131,7 +130,6 @@ public class WebFluxAutoConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties({ WebProperties.class, WebFluxProperties.class })
|
||||
@Import({ EnableWebFluxConfiguration.class })
|
||||
|
||||
@@ -48,7 +48,6 @@ import org.springframework.web.reactive.result.view.ViewResolver;
|
||||
* @author Scott Frederick
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE)
|
||||
@ConditionalOnClass(WebFluxConfigurer.class)
|
||||
|
||||
@@ -208,7 +208,6 @@ public class WebMvcProperties {
|
||||
return this.pathmatch;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public void checkConfiguration() {
|
||||
if (this.getPathmatch().getMatchingStrategy() == MatchingStrategy.PATH_PATTERN_PARSER) {
|
||||
if (this.getPathmatch().isUseSuffixPattern()) {
|
||||
|
||||
@@ -122,7 +122,6 @@ public class ErrorMvcAutoConfiguration {
|
||||
return new PreserveErrorControllerTargetClassPostProcessor();
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties({ WebProperties.class, WebMvcProperties.class })
|
||||
static class DefaultErrorViewResolverConfiguration {
|
||||
|
||||
Reference in New Issue
Block a user