mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
[java] Regenerate API lists with Java 23
The newly regenerated list is merged with the previous API list. The newly generated list uses an updated version of the generator that correctly writes canonical names for Java versions higher than 19. #IDEA-357683 Fixed GitOrigin-RevId: 81c62964385d1daaeaf3e84306ebfbc5c77ad90a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
68515f6a0c
commit
362bcc4561
@@ -199,7 +199,7 @@ class JavaJavaApiUsageInspectionTest : JavaApiUsageInspectionTestBase() {
|
||||
""".trimIndent())
|
||||
}
|
||||
|
||||
fun `test language level 14 with JDK 15`() {
|
||||
fun `test language level 14`() {
|
||||
myFixture.setLanguageLevel(LanguageLevel.JDK_14)
|
||||
myFixture.testHighlighting(JvmLanguage.JAVA, """
|
||||
class Main {
|
||||
@@ -214,7 +214,7 @@ class JavaJavaApiUsageInspectionTest : JavaApiUsageInspectionTestBase() {
|
||||
""".trimIndent())
|
||||
}
|
||||
|
||||
fun `test language level 15 with JDK 16`() {
|
||||
fun `test language level 15`() {
|
||||
myFixture.setLanguageLevel(LanguageLevel.JDK_15)
|
||||
myFixture.testHighlighting(JvmLanguage.JAVA, """
|
||||
class Main {
|
||||
@@ -226,7 +226,7 @@ class JavaJavaApiUsageInspectionTest : JavaApiUsageInspectionTestBase() {
|
||||
""".trimIndent())
|
||||
}
|
||||
|
||||
fun `test language level 16 with JDK 17`() {
|
||||
fun `test language level 16`() {
|
||||
myFixture.setLanguageLevel(LanguageLevel.JDK_16)
|
||||
myFixture.testHighlighting(JvmLanguage.JAVA, """
|
||||
class Main {
|
||||
@@ -238,6 +238,21 @@ class JavaJavaApiUsageInspectionTest : JavaApiUsageInspectionTestBase() {
|
||||
""".trimIndent())
|
||||
}
|
||||
|
||||
fun `test language level 17`() {
|
||||
myFixture.setLanguageLevel(LanguageLevel.JDK_17)
|
||||
myFixture.testHighlighting(JvmLanguage.JAVA, """
|
||||
import java.time.Duration;
|
||||
|
||||
class Main {
|
||||
{
|
||||
try {
|
||||
Thread.<error descr="Usage of API documented as @since 19+">sleep</error>(Duration.ofSeconds(5));
|
||||
} catch (InterruptedException e) { }
|
||||
}
|
||||
}
|
||||
""".trimIndent())
|
||||
}
|
||||
|
||||
fun `test override with different since version`() {
|
||||
myFixture.setLanguageLevel(LanguageLevel.JDK_1_8)
|
||||
myFixture.testHighlighting(JvmLanguage.JAVA, """
|
||||
|
||||
Reference in New Issue
Block a user