Browse Source

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
pull/34266/head
Brian Clozel 1 year ago
parent
commit
c02251672e
  1. 5
      spring-core/src/main/java/org/springframework/aot/hint/predicate/ReflectionHintsPredicates.java

5
spring-core/src/main/java/org/springframework/aot/hint/predicate/ReflectionHintsPredicates.java

@ -374,7 +374,7 @@ public class ReflectionHintsPredicates { @@ -374,7 +374,7 @@ public class ReflectionHintsPredicates {
}
}
@Deprecated(since = "7.0", forRemoval = true)
@SuppressWarnings("removal")
public abstract static class ExecutableHintPredicate<T extends Executable> implements Predicate<RuntimeHints> {
@ -420,6 +420,7 @@ public class ReflectionHintsPredicates { @@ -420,6 +420,7 @@ public class ReflectionHintsPredicates {
}
@Deprecated(since = "7.0", forRemoval = true)
@SuppressWarnings("removal")
public static class ConstructorHintPredicate extends ExecutableHintPredicate<Constructor<?>> {
@ -454,6 +455,7 @@ public class ReflectionHintsPredicates { @@ -454,6 +455,7 @@ public class ReflectionHintsPredicates {
}
@Deprecated(since = "7.0", forRemoval = true)
@SuppressWarnings("removal")
public static class MethodHintPredicate extends ExecutableHintPredicate<Method> {
@ -489,6 +491,7 @@ public class ReflectionHintsPredicates { @@ -489,6 +491,7 @@ public class ReflectionHintsPredicates {
}
@Deprecated(since = "7.0", forRemoval = true)
public static class FieldHintPredicate implements Predicate<RuntimeHints> {
private final Field field;

Loading…
Cancel
Save