Skip to content

Commit e545fb2

Browse files
committed
search visit SimpleType.annotations()
1 parent 59a8949 commit e545fb2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/core/search/PatternLocatorVisitor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import org.eclipse.jdt.core.dom.ASTNode;
1919
import org.eclipse.jdt.core.dom.ASTVisitor;
2020
import org.eclipse.jdt.core.dom.AbstractTypeDeclaration;
21+
import org.eclipse.jdt.core.dom.Annotation;
2122
import org.eclipse.jdt.core.dom.AnnotationTypeDeclaration;
2223
import org.eclipse.jdt.core.dom.AnnotationTypeMemberDeclaration;
2324
import org.eclipse.jdt.core.dom.AnonymousClassDeclaration;
@@ -203,6 +204,9 @@ public boolean visit(SimpleType type) {
203204
qn1.accept(this);
204205
}
205206
}
207+
for (var ann : (List<Annotation>)type.annotations() ) {
208+
ann.accept(this);
209+
}
206210
return false; // No need to visit single name child
207211
}
208212
@Override

0 commit comments

Comments
 (0)