Remove redundant deprecation suppressions

Closes gh-27415
pull/27417/head
Andy Wilkinson 3 years ago
commit 6e7e72a481

@ -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 {

Loading…
Cancel
Save