Skip to content

Commit ee75073

Browse files
committed
Fix annotation vs interface keyword stubbing
1 parent eda676d commit ee75073

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

java/ql/src/utils/stub-generator/Stubs.qll

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ abstract private class GeneratedType extends ClassOrInterface {
1717

1818
private string stubKeyword() {
1919
this instanceof Interface and
20-
(
21-
this instanceof AnnotationType and result = "@interface"
22-
or
23-
result = "interface"
24-
)
20+
(if this instanceof AnnotationType then result = "@interface" else result = "interface")
2521
or
2622
this instanceof Class and
2723
(if this instanceof EnumType then result = "enum" else result = "class")

0 commit comments

Comments
 (0)