Skip to content

Commit b59eb3e

Browse files
committed
Annotations in Java
1 parent 6feaa5a commit b59eb3e

11 files changed

Lines changed: 401 additions & 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

codeql-java/.cache/size

0 Bytes
Binary file not shown.

codeql-java/Annotations in Java/Annotations in Java.md

Lines changed: 367 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import java
2+
3+
from Constructor c, Annotation ann, AnnotationType anntp
4+
where ann = c.getAnAnnotation() and
5+
anntp = ann.getType() and
6+
anntp.hasQualifiedName("java.lang", "SuppressWarnings")
7+
select ann, ann.getValue("value")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import java
2+
3+
from Annotation ann
4+
where ann.getType().hasQualifiedName("java.lang", "Override")
5+
select ann

0 commit comments

Comments
 (0)