mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Tolerate generic annotations
This causes them to render properly in PrintAst output due to `getAnnotationElement` working as expected, and will hide the fact that they are represented by raw types in bytecode.
This commit is contained in:
@@ -37,7 +37,7 @@ class Annotation extends @annotation, Expr {
|
||||
}
|
||||
|
||||
/** Gets the annotation type declaration for this annotation. */
|
||||
override AnnotationType getType() { result = Expr.super.getType() }
|
||||
override AnnotationType getType() { result = Expr.super.getType().(AnnotationType).getSourceDeclaration() }
|
||||
|
||||
/** Gets the annotation element with the specified `name`. */
|
||||
AnnotationElement getAnnotationElement(string name) {
|
||||
|
||||
Reference in New Issue
Block a user