[java] JavaFeature.OBJECTS_CLASS

GitOrigin-RevId: 99e54a5f42368279b20fca9388f420cd6e24dee2
This commit is contained in:
Tagir Valeev
2024-03-14 19:34:45 +00:00
committed by intellij-monorepo-bot
parent d18c733fe1
commit 3ed2f12a89
11 changed files with 34 additions and 18 deletions
@@ -67,6 +67,7 @@ feature.try.with.resources=Try-with-resources
feature.binary.literals=Binary literals
feature.underscores.in.literals=Underscores in literals
feature.string.switch=Strings in 'switch' statements
feature.objects.class=java.util.Objects API
feature.stream.and.optional.api=Stream and Optional API
feature.advanced.collection.api=Lambda methods in collections
feature.with.initial=ThreadLocal.withInitial()
@@ -28,6 +28,7 @@ public enum JavaFeature {
BIN_LITERALS(LanguageLevel.JDK_1_7, "feature.binary.literals"),
UNDERSCORES(LanguageLevel.JDK_1_7, "feature.underscores.in.literals"),
STRING_SWITCH(LanguageLevel.JDK_1_7, "feature.string.switch"),
OBJECTS_CLASS(LanguageLevel.JDK_1_7, "feature.objects.class"),
STREAM_OPTIONAL(LanguageLevel.JDK_1_8, "feature.stream.and.optional.api", true),
/**
* java.util.Arrays.setAll, java.util.Collection#removeIf, java.util.List.sort(Comparator),