mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Java: Remove omittable exists variables
This commit is contained in:
@@ -42,9 +42,9 @@ predicate isKeyNext(Expr e, KeySetIterator it) {
|
||||
|
||||
class Key extends LocalVariableDecl {
|
||||
Key() {
|
||||
exists(LocalVariableDeclExpr lvde, KeySetIterator it |
|
||||
exists(LocalVariableDeclExpr lvde |
|
||||
lvde.getVariable() = this and
|
||||
isKeyNext(lvde.getInit(), it)
|
||||
isKeyNext(lvde.getInit(), _)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user