|
28 | 28 |
|
29 | 29 | import org.springframework.aot.hint.ReflectionHints;
|
30 | 30 | import org.springframework.aot.hint.RuntimeHints;
|
31 |
| -import org.springframework.aot.hint.support.RuntimeHintsUtils; |
32 |
| -import org.springframework.core.annotation.MergedAnnotation; |
33 | 31 | import org.springframework.core.annotation.MergedAnnotations;
|
34 | 32 | import org.springframework.util.ClassUtils;
|
35 | 33 | import org.springframework.util.ReflectionUtils;
|
@@ -62,20 +60,9 @@ public void registerRuntimeHints(RuntimeHints runtimeHints, Class<?>... types) {
|
62 | 60 | entries.forEach(entry -> {
|
63 | 61 | AnnotatedElement element = entry.element();
|
64 | 62 | entry.processor().registerReflectionHints(runtimeHints.reflection(), element);
|
65 |
| - registerAnnotationIfNecessary(runtimeHints, element); |
66 | 63 | });
|
67 | 64 | }
|
68 | 65 |
|
69 |
| - @SuppressWarnings("deprecation") |
70 |
| - private void registerAnnotationIfNecessary(RuntimeHints hints, AnnotatedElement element) { |
71 |
| - MergedAnnotation<Reflective> reflectiveAnnotation = MergedAnnotations.from(element) |
72 |
| - .get(Reflective.class); |
73 |
| - MergedAnnotation<?> metaSource = reflectiveAnnotation.getMetaSource(); |
74 |
| - if (metaSource != null) { |
75 |
| - RuntimeHintsUtils.registerAnnotationIfNecessary(hints, metaSource); |
76 |
| - } |
77 |
| - } |
78 |
| - |
79 | 66 | private void processType(Set<Entry> entries, Class<?> typeToProcess) {
|
80 | 67 | if (isReflective(typeToProcess)) {
|
81 | 68 | entries.add(createEntry(typeToProcess));
|
|
0 commit comments