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 1
1
isFinalField
2
2
| 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
4
4
class Config extends DataFlow:: Configuration {
5
5
Config ( ) { this = "Config" }
6
6
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" }
10
8
11
9
override predicate isSink ( DataFlow:: Node n ) {
12
10
n .asExpr ( ) .( Argument ) .getCall ( ) .getCallee ( ) .getName ( ) = "sink"
You can’t perform that action at this time.
0 commit comments