Skip to content

Commit 5e023bf

Browse files
committed
Remove no-longer-applicable diagnostic matches
These resulted from the Java compiler exploring NotNull and other Kotlin-emitted annotations, which it no longer does because it finds a .class trap file already present and truncates its class-graph walk
1 parent 82f3c2f commit 5e023bf

File tree

4 files changed

+0
-17
lines changed

4 files changed

+0
-17
lines changed

java/ql/test/kotlin/library-tests/annotations/jvmName/test.kt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,3 @@ class X {
1616
annotation class Ann(
1717
val p: Int,
1818
@get:JvmName("w") val q: Int)
19-
20-
// Diagnostic Matches: Incomplete annotation: @kotlin.jvm.JvmName(name="changeY")
21-
// Diagnostic Matches: Incomplete annotation: @kotlin.jvm.JvmName(name="getX_prop")
22-
// Diagnostic Matches: Incomplete annotation: @kotlin.jvm.JvmName(name="method")
23-
// Diagnostic Matches: Incomplete annotation: @kotlin.jvm.JvmName(name="y")
24-
// Diagnostic Matches: Unknown location for kotlin.jvm.JvmName

java/ql/test/kotlin/library-tests/arrays-with-variances/takesArrayList.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,3 @@ public class TakesArrayList {
110110
fun inInArrayComparableAny(c: Comparable<Array<in Array<in Any>>>) { }
111111

112112
}
113-
114-
// Diagnostic Matches: Completion failure for type: org.jetbrains.annotations.NotNull
115-
// Diagnostic Matches: Unknown location for org.jetbrains.annotations.NotNull

java/ql/test/kotlin/library-tests/extensions/extensions.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,3 @@ fun foo() {
3030
fun String.baz(p1: String): String { return "Baz" }
3131
"someString".baz("bazParam")
3232
}
33-
34-
// Diagnostic Matches: Completion failure for type: org.jetbrains.annotations.NotNull
35-
// Diagnostic Matches: Unknown location for org.jetbrains.annotations.NotNull

java/ql/test/kotlin/library-tests/jvmoverloads_generics/test.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,3 @@ public class A {
44
fun <T> genericFunctionWithOverloads(x: T? = null, y: List<T>? = null, z: T? = null): T? = z
55

66
}
7-
8-
// Diagnostic Matches: Completion failure for type: kotlin.jvm.JvmOverloads
9-
// Diagnostic Matches: Completion failure for type: org.jetbrains.annotations.Nullable
10-
// Diagnostic Matches: Unknown location for kotlin.jvm.JvmOverloads
11-
// Diagnostic Matches: Unknown location for org.jetbrains.annotations.Nullable

0 commit comments

Comments
 (0)