Skip to content

Commit 74b05d2

Browse files
committed
Kotlin: Reflection test should not refer to DataFlowPrivate.
1 parent 87461fe commit 74b05d2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

java/ql/test/kotlin/library-tests/reflection/reflection.ql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import java
2-
import semmle.code.java.dataflow.internal.DataFlowPrivate
32

43
// Stop external filepaths from appearing in the results
54
class ClassOrInterfaceLocation extends ClassOrInterface {
@@ -30,9 +29,9 @@ query predicate variableInitializerType(
3029
decl.getInitializer().getType() = t2 and
3130
t2.extendsOrImplements(t3) and
3231
(
33-
compatible = true and compatibleTypes(t1, t2)
32+
compatible = true and haveIntersection(t1, t2)
3433
or
35-
compatible = false and not compatibleTypes(t1, t2)
34+
compatible = false and notHaveIntersection(t1, t2)
3635
)
3736
}
3837

0 commit comments

Comments
 (0)