Skip to content

Commit 23e2322

Browse files
Simplify ArrayUpdate
Co-authored-by: Chris Smowton <[email protected]>
1 parent f41828e commit 23e2322

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/ql/src/experimental/semmle/code/java/security/StaticInitializationVectorQuery.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ private class ArrayUpdate extends Expr {
3636
Expr array;
3737

3838
ArrayUpdate() {
39-
exists(Assignment assign, ArrayAccess arrayAccess | arrayAccess = assign.getDest() |
39+
exists(Assignment assign |
4040
assign = this and
41-
arrayAccess.getArray() = array and
41+
assign.getDest().(ArrayAccess).getArray() = array and
4242
not assign.getSource() instanceof CompileTimeConstantExpr
4343
)
4444
or

0 commit comments

Comments
 (0)