mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
Java: Address review comment. Improve getAnImportedType definition
This commit is contained in:
@@ -179,13 +179,8 @@ class ModuleImportDeclaration extends Import {
|
||||
)
|
||||
}
|
||||
|
||||
/** Gets a type that is imported from the module. */
|
||||
RefType getAnImportedType() {
|
||||
exists(Package pkg |
|
||||
pkg = this.getAnImportedPackage() and
|
||||
result.getPackage() = pkg
|
||||
)
|
||||
}
|
||||
/** Gets a type from a package that is accessible through this module import. */
|
||||
RefType getAnImportedType() { result.getPackage() = this.getAnImportedPackage() }
|
||||
|
||||
override string toString() { result = "import module " + this.getModuleName() }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user