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
This commit is contained in:
Brian Clozel
2025-01-14 10:28:39 +01:00
parent 9b17928143
commit c02251672e

View File

@@ -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 {
}
@Deprecated(since = "7.0", forRemoval = true)
@SuppressWarnings("removal")
public static class ConstructorHintPredicate extends ExecutableHintPredicate<Constructor<?>> {
@@ -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 {
}
@Deprecated(since = "7.0", forRemoval = true)
public static class FieldHintPredicate implements Predicate<RuntimeHints> {
private final Field field;