[java] Don't mark preview LLs as LTS releases in combo

#IDEA-374763


(cherry picked from commit 45b870aeece0f7d939ac801017cd8354e07241b0)

IJ-CR-166447

GitOrigin-RevId: a883c7514fd9c033a6ea491f47da202c2ec1e065
This commit is contained in:
Bart van Helvert
2025-06-22 12:12:37 +02:00
committed by intellij-monorepo-bot
parent 9a28c60400
commit ca9944c4e8

View File

@@ -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)
}
}