File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
java/ql/test/kotlin/library-tests/field-initializer-flow Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import java
22import semmle.code.java.dataflow.DataFlow
33
44class Config extends DataFlow:: Configuration {
5-
65 Config ( ) { this = "Config" }
76
87 override predicate isSource ( DataFlow:: Node n ) {
@@ -12,10 +11,11 @@ class Config extends DataFlow::Configuration {
1211 override predicate isSink ( DataFlow:: Node n ) {
1312 n .asExpr ( ) .( Argument ) .getCall ( ) .getCallee ( ) .getName ( ) = "sink"
1413 }
15-
1614}
1715
18- query predicate isFinalField ( Field f ) { exists ( FieldDeclaration f2 | f = f2 .getAField ( ) ) and f .isFinal ( ) }
16+ query predicate isFinalField ( Field f ) {
17+ exists ( FieldDeclaration f2 | f = f2 .getAField ( ) ) and f .isFinal ( )
18+ }
1919
2020from DataFlow:: Node source , DataFlow:: Node sink
2121where any ( Config c ) .hasFlow ( source , sink )
You can’t perform that action at this time.
0 commit comments