IDEA-322044 highlight reference if the highlight element is a reference

GitOrigin-RevId: 0102670574bd4f50a6effe4dcc743bf84ce6533d
This commit is contained in:
Daniil Ovchinnikov
2023-06-08 15:14:24 +02:00
committed by intellij-monorepo-bot
parent 067a7a6cb3
commit 292c324976
3 changed files with 29 additions and 3 deletions

View File

@@ -26,4 +26,13 @@ class JavaObsoleteApiUsageInspectionTest : ObsoleteApiUsageInspectionTestBase()
}
""".trimIndent())
}
fun `test generic reference`() {
myFixture.addClass("@org.jetbrains.annotations.ApiStatus.Obsolete interface I<T> {}")
myFixture.testHighlighting(JvmLanguage.JAVA, """
class U {
void u(<warning descr="Obsolete API is used">I</warning><Integer> i) {}
}
""".trimIndent())
}
}