Skip to content

Commit 0083d5a

Browse files
committed
Java: Address review comment. Improve getAnImportedType definition
1 parent 6d8a014 commit 0083d5a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

java/ql/lib/semmle/code/java/Import.qll

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,7 @@ class ModuleImportDeclaration extends Import {
180180
}
181181

182182
/** Gets a type that is imported from the module. */
183-
RefType getAnImportedType() {
184-
exists(Package pkg |
185-
pkg = this.getAnImportedPackage() and
186-
result.getPackage() = pkg
187-
)
188-
}
183+
RefType getAnImportedType() { result.getPackage() = this.getAnImportedPackage() }
189184

190185
override string toString() { result = "import module " + this.getModuleName() }
191186

0 commit comments

Comments
 (0)