mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 05:09:37 +07:00
IDEA-322044 highlight reference if the highlight element is a reference
GitOrigin-RevId: 0102670574bd4f50a6effe4dcc743bf84ce6533d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
067a7a6cb3
commit
292c324976
@@ -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())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user