Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20af134 commit 775b53bCopy full SHA for 775b53b
2 files changed
java/ql/test/kotlin/library-tests/field-initializer-flow/test.expected
@@ -1,4 +1,3 @@
1
isFinalField
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(...) |
+#select
java/ql/test/kotlin/library-tests/field-initializer-flow/test.ql
@@ -4,9 +4,7 @@ import semmle.code.java.dataflow.DataFlow
class Config extends DataFlow::Configuration {
5
Config() { this = "Config" }
6
7
- override predicate isSource(DataFlow::Node n) {
8
- n.asExpr().(CompileTimeConstantExpr).getStringValue() = "Source"
9
- }
+ override predicate isSource(DataFlow::Node n) { n.asExpr().(StringLiteral).getValue() = "Source" }
10
11
override predicate isSink(DataFlow::Node n) {
12
n.asExpr().(Argument).getCall().getCallee().getName() = "sink"
0 commit comments