File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
java/ql/test/kotlin/library-tests/field-initializer-flow Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 11isFinalField
22| test.kt:3:3:3:18 | x |
3- #select
4- | test.kt:3:3:3:18 | this.x | test.kt:6:10:6:10 | getX(...) |
3+ #select
Original file line number Diff line number Diff line change @@ -4,9 +4,7 @@ import semmle.code.java.dataflow.DataFlow
44class Config extends DataFlow:: Configuration {
55 Config ( ) { this = "Config" }
66
7- override predicate isSource ( DataFlow:: Node n ) {
8- n .asExpr ( ) .( CompileTimeConstantExpr ) .getStringValue ( ) = "Source"
9- }
7+ override predicate isSource ( DataFlow:: Node n ) { n .asExpr ( ) .( StringLiteral ) .getValue ( ) = "Source" }
108
119 override predicate isSink ( DataFlow:: Node n ) {
1210 n .asExpr ( ) .( Argument ) .getCall ( ) .getCallee ( ) .getName ( ) = "sink"
You can’t perform that action at this time.
0 commit comments