Skip to content

Commit 7f76d8a

Browse files
committed
Replace redundant use of Class or Interface
1 parent 82a2f43 commit 7f76d8a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,9 +523,8 @@ class GeneratedTopLevel extends TopLevelType instanceof GeneratedType {
523523
}
524524

525525
private string stubAnImport() {
526-
exists(RefType t, string pkg, string name |
526+
exists(ClassOrInterface t, string pkg, string name |
527527
t = this.getAnImportedType() and
528-
(t instanceof Class or t instanceof Interface) and
529528
t.hasQualifiedName(pkg, name) and
530529
t != this and
531530
pkg != "java.lang"

0 commit comments

Comments
 (0)