mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
[java] all language levels except experimental should have an api list
GitOrigin-RevId: 078af83fe56039aa5a87cedade2981be4a93bd7a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
eda10a8961
commit
994cd7442a
@@ -72,8 +72,8 @@ public final class LanguageLevelUtil {
|
||||
|
||||
static {
|
||||
for (LanguageLevel level : LanguageLevel.values()) {
|
||||
if (level.ordinal() > LanguageLevel.HIGHEST.ordinal()) break;
|
||||
int feature = level.feature() + 1;
|
||||
if (LanguageLevel.forFeature(feature) == null) break;
|
||||
ourPresentableShortMessage.put(level, feature >= 9 ? String.valueOf(feature) : "1." + feature);
|
||||
}
|
||||
}
|
||||
@@ -105,11 +105,6 @@ public final class LanguageLevelUtil {
|
||||
if (resource != null) {
|
||||
result = loadSignatureList(resource);
|
||||
}
|
||||
else if (languageLevel.isAtLeast(LanguageLevel.HIGHEST)) {
|
||||
// For preview or experimental language levels, there might be no API files yet.
|
||||
// This is not considered an error because the API might not be stable yet.
|
||||
result = Collections.emptySet();
|
||||
}
|
||||
else {
|
||||
Logger.getInstance(LanguageLevelUtil.class).error("File not found: " + fileName);
|
||||
result = Collections.emptySet();
|
||||
|
||||
Reference in New Issue
Block a user