Skip to content

Commit b97a3ae

Browse files
committed
Revert unnecessary suppress warnings
See spring-projects/spring-framework#28079
1 parent 0accc3d commit b97a3ae

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/context/properties/ConfigurationPropertiesReportEndpoint.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2021 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.
@@ -489,7 +489,6 @@ private String determineAccessorSuffix(String propertyName) {
489489
return StringUtils.capitalize(propertyName);
490490
}
491491

492-
@SuppressWarnings("deprecation")
493492
private Constructor<?> findBindConstructor(Class<?> type) {
494493
boolean classConstructorBinding = MergedAnnotations
495494
.from(type, SearchStrategy.TYPE_HIERARCHY_AND_ENCLOSING_CLASSES)

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindConstructorProvider.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2020 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.
@@ -76,7 +76,6 @@ private Constructor<?> findAnnotatedConstructor(Class<?> type, Constructor<?>...
7676
return constructor;
7777
}
7878

79-
@SuppressWarnings("deprecation")
8079
private boolean isConstructorBindingAnnotatedType(Class<?> type) {
8180
return MergedAnnotations.from(type, MergedAnnotations.SearchStrategy.TYPE_HIERARCHY_AND_ENCLOSING_CLASSES)
8281
.isPresent(ConstructorBinding.class);

0 commit comments

Comments
 (0)