Replace redundant use of Class or Interface

This commit is contained in:
Chris Smowton
2023-02-07 18:40:25 +00:00
parent 82a2f4349a
commit 7f76d8ae55

View File

@@ -523,9 +523,8 @@ class GeneratedTopLevel extends TopLevelType instanceof GeneratedType {
}
private string stubAnImport() {
exists(RefType t, string pkg, string name |
exists(ClassOrInterface t, string pkg, string name |
t = this.getAnImportedType() and
(t instanceof Class or t instanceof Interface) and
t.hasQualifiedName(pkg, name) and
t != this and
pkg != "java.lang"