From b97a3ae07aa29d9c55c95f54c50b5558564a87c5 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 16 Mar 2022 18:10:31 +0100 Subject: [PATCH] Revert unnecessary suppress warnings See https://github.com/spring-projects/spring-framework/issues/28079 --- .../properties/ConfigurationPropertiesReportEndpoint.java | 3 +-- .../ConfigurationPropertiesBindConstructorProvider.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/context/properties/ConfigurationPropertiesReportEndpoint.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/context/properties/ConfigurationPropertiesReportEndpoint.java index f3767f189f..c79c58a060 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/context/properties/ConfigurationPropertiesReportEndpoint.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/context/properties/ConfigurationPropertiesReportEndpoint.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2022 the original author or authors. + * Copyright 2012-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -489,7 +489,6 @@ public class ConfigurationPropertiesReportEndpoint implements ApplicationContext return StringUtils.capitalize(propertyName); } - @SuppressWarnings("deprecation") private Constructor findBindConstructor(Class type) { boolean classConstructorBinding = MergedAnnotations .from(type, SearchStrategy.TYPE_HIERARCHY_AND_ENCLOSING_CLASSES) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindConstructorProvider.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindConstructorProvider.java index 003472dd04..d9e4723c66 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindConstructorProvider.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindConstructorProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2022 the original author or authors. + * Copyright 2012-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -76,7 +76,6 @@ class ConfigurationPropertiesBindConstructorProvider implements BindConstructorP return constructor; } - @SuppressWarnings("deprecation") private boolean isConstructorBindingAnnotatedType(Class type) { return MergedAnnotations.from(type, MergedAnnotations.SearchStrategy.TYPE_HIERARCHY_AND_ENCLOSING_CLASSES) .isPresent(ConstructorBinding.class);