Skip to content

Commit c022516

Browse files
committed
Polishing RuntimeHintsPredicates deprecations
This commit also deprecates the types returned by deprecated methods as they will be removed as well in the future. See spring-projectsgh-34239
1 parent 9b17928 commit c022516

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ public Predicate<RuntimeHints> withAnyMemberCategory(MemberCategory... memberCat
374374
}
375375
}
376376

377-
377+
@Deprecated(since = "7.0", forRemoval = true)
378378
@SuppressWarnings("removal")
379379
public abstract static class ExecutableHintPredicate<T extends Executable> implements Predicate<RuntimeHints> {
380380

@@ -420,6 +420,7 @@ static boolean includes(ExecutableHint hint, String name,
420420
}
421421

422422

423+
@Deprecated(since = "7.0", forRemoval = true)
423424
@SuppressWarnings("removal")
424425
public static class ConstructorHintPredicate extends ExecutableHintPredicate<Constructor<?>> {
425426

@@ -454,6 +455,7 @@ Predicate<RuntimeHints> exactMatch() {
454455
}
455456

456457

458+
@Deprecated(since = "7.0", forRemoval = true)
457459
@SuppressWarnings("removal")
458460
public static class MethodHintPredicate extends ExecutableHintPredicate<Method> {
459461

@@ -489,6 +491,7 @@ Predicate<RuntimeHints> exactMatch() {
489491
}
490492

491493

494+
@Deprecated(since = "7.0", forRemoval = true)
492495
public static class FieldHintPredicate implements Predicate<RuntimeHints> {
493496

494497
private final Field field;

0 commit comments

Comments
 (0)