From ca9944c4e8eea01a4f3821bcf02323957c142fd8 Mon Sep 17 00:00:00 2001 From: Bart van Helvert Date: Sun, 22 Jun 2025 12:12:37 +0200 Subject: [PATCH] [java] Don't mark preview LLs as LTS releases in combo #IDEA-374763 (cherry picked from commit 45b870aeece0f7d939ac801017cd8354e07241b0) IJ-CR-166447 GitOrigin-RevId: a883c7514fd9c033a6ea491f47da202c2ec1e065 --- .../openapi/roots/ui/configuration/LanguageLevelCombo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/LanguageLevelCombo.kt b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/LanguageLevelCombo.kt index e032ed6c8a2c..f6166ef97527 100644 --- a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/LanguageLevelCombo.kt +++ b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/LanguageLevelCombo.kt @@ -74,7 +74,7 @@ abstract class LanguageLevelCombo @JvmOverloads constructor( }) { if (value is LanguageLevel && value.isUnsupported) { attributes = SimpleTextAttributes.ERROR_ATTRIBUTES - } else if (value is LanguageLevel && LTS.contains(value)) { + } else if (value is LanguageLevel && LTS.contains(value) && value <= highestLanguageLevel) { attributes = SimpleTextAttributes.REGULAR_ATTRIBUTES.derive(SimpleTextAttributes.STYLE_BOLD, null, null, null) } }