We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d61e0 commit 85b2642Copy full SHA for 85b2642
java/ql/test/library-tests/pathsanitizer/TestKt.kt
@@ -20,10 +20,8 @@ class TestKt {
20
fun exactPathMatchGuard() {
21
run {
22
val source = source() as String?
23
- // This gets extracted as Object.equals, which makes the definitions in exactPathMatchGuard not catch it.
24
- // Note that it gets correctly extracted in Java.
25
if (source!!.equals("/safe/path"))
26
- sink(source) // $SPURIOUS: $ hasTaintFlow
+ sink(source) // Safe
27
else
28
sink(source) // $ hasTaintFlow
29
}
0 commit comments