From c02251672eda36668780f942dd8a59bba9bd841d Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Tue, 14 Jan 2025 10:28:39 +0100 Subject: [PATCH] Polishing RuntimeHintsPredicates deprecations This commit also deprecates the types returned by deprecated methods as they will be removed as well in the future. See gh-34239 --- .../aot/hint/predicate/ReflectionHintsPredicates.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spring-core/src/main/java/org/springframework/aot/hint/predicate/ReflectionHintsPredicates.java b/spring-core/src/main/java/org/springframework/aot/hint/predicate/ReflectionHintsPredicates.java index debc1324436..5dd427af89b 100644 --- a/spring-core/src/main/java/org/springframework/aot/hint/predicate/ReflectionHintsPredicates.java +++ b/spring-core/src/main/java/org/springframework/aot/hint/predicate/ReflectionHintsPredicates.java @@ -374,7 +374,7 @@ public class ReflectionHintsPredicates { } } - + @Deprecated(since = "7.0", forRemoval = true) @SuppressWarnings("removal") public abstract static class ExecutableHintPredicate implements Predicate { @@ -420,6 +420,7 @@ public class ReflectionHintsPredicates { } + @Deprecated(since = "7.0", forRemoval = true) @SuppressWarnings("removal") public static class ConstructorHintPredicate extends ExecutableHintPredicate> { @@ -454,6 +455,7 @@ public class ReflectionHintsPredicates { } + @Deprecated(since = "7.0", forRemoval = true) @SuppressWarnings("removal") public static class MethodHintPredicate extends ExecutableHintPredicate { @@ -489,6 +491,7 @@ public class ReflectionHintsPredicates { } + @Deprecated(since = "7.0", forRemoval = true) public static class FieldHintPredicate implements Predicate { private final Field field;