Skip to content

Commit 85b2642

Browse files
committed
Extraction discrepancy fixed in kotlinc 1.7.21
1 parent 47d61e0 commit 85b2642

File tree

1 file changed

+1
-3
lines changed
  • java/ql/test/library-tests/pathsanitizer

1 file changed

+1
-3
lines changed

java/ql/test/library-tests/pathsanitizer/TestKt.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ class TestKt {
2020
fun exactPathMatchGuard() {
2121
run {
2222
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.
2523
if (source!!.equals("/safe/path"))
26-
sink(source) // $SPURIOUS: $ hasTaintFlow
24+
sink(source) // Safe
2725
else
2826
sink(source) // $ hasTaintFlow
2927
}

0 commit comments

Comments
 (0)