Skip to content

Commit 40e902e

Browse files
committed
Look through generic annotation types extracted from Kotlin
1 parent 65dc0dc commit 40e902e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/lib/semmle/code/java/Annotation.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Annotation extends @annotation, Expr {
3838

3939
/** Gets the annotation type declaration for this annotation. */
4040
override AnnotationType getType() {
41-
result = Expr.super.getType().(AnnotationType).getSourceDeclaration()
41+
result = Expr.super.getType().(Interface).getSourceDeclaration()
4242
}
4343

4444
/** Gets the annotation element with the specified `name`. */

0 commit comments

Comments
 (0)