mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Java: Performance tweaks
This commit is contained in:
@@ -21,7 +21,7 @@ pragma[nomagic]
|
||||
predicate inherits(Class c, Field f) {
|
||||
f = c.getAField()
|
||||
or
|
||||
not f.isPrivate() and c.getASupertype+().getAField() = f
|
||||
not f.isPrivate() and c.getAStrictAncestor().getAField() = f
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user