File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
java/ql/src/semmle/code/java/security Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -137,11 +137,9 @@ private class CommandArgumentArray extends SsaExplicitUpdate {
137137 /** Gets an expression that is written to the given index of this array. */
138138 Expr getAWrite ( int index ) { result = getAWrite ( index , _) }
139139
140- predicate isNotShell ( ) {
141- exists ( Expr e | e = this .( CommandArgArrayImmutableFirst ) .getFirstElement ( ) |
142- not isShell ( e )
143- )
144- }
140+ predicate isNotShell ( ) {
141+ exists ( Expr e | e = this .( CommandArgArrayImmutableFirst ) .getFirstElement ( ) | not isShell ( e ) )
142+ }
145143}
146144
147145/**
@@ -186,7 +184,8 @@ private class ImmutableFirstArrayExpr extends Expr {
186184 ma .getArgument ( 0 ) instanceof ImmutableFirstArrayExpr
187185 )
188186 or
189- exists ( Field f | this = f .getAnAccess ( ) and
187+ exists ( Field f |
188+ this = f .getAnAccess ( ) and
190189 f .isFinal ( ) and
191190 f .getInitializer ( ) instanceof ImmutableFirstArrayExpr
192191 )
You can’t perform that action at this time.
0 commit comments