Polishing

This commit is contained in:
Sam Brannen
2022-08-11 20:36:21 +02:00
parent 7631a09405
commit a052f9a34e
3 changed files with 8 additions and 11 deletions

View File

@@ -100,8 +100,7 @@ public abstract class RuntimeHintsUtils {
Class<?> annotationAttribute = aliasFor.annotation();
Class<?> targetAnnotation = (annotationAttribute != Annotation.class
? annotationAttribute : annotationType);
if (!types.contains(targetAnnotation)) {
types.add(targetAnnotation);
if (types.add(targetAnnotation)) {
if (!targetAnnotation.equals(annotationType)) {
collectAliasedAnnotations(seen, types, targetAnnotation);
}