[java] A little bit more of JavaFeature uses

GitOrigin-RevId: ffb3c336a16500a53000a8fbd6aa793fffd6befc
This commit is contained in:
Tagir Valeev
2024-02-07 18:43:20 +01:00
committed by intellij-monorepo-bot
parent 5715a9cac5
commit 2b41a7f753
4 changed files with 6 additions and 4 deletions

View File

@@ -104,6 +104,7 @@ feature.unnamed.vars=Unnamed patterns and variables
feature.implicit.classes=Implicitly declared classes
feature.scoped.values=Scoped Values
feature.structured.concurrency=Structured Concurrency
feature.sequenced.collections=Sequenced Collections
feature.classfile.api=ClassFile API
feature.stream.gatherers=Stream Gatherers
feature.foreign.functions=Foreign Function & Memory API

View File

@@ -126,6 +126,7 @@ public enum JavaFeature {
IMPLICIT_CLASSES(LanguageLevel.JDK_21_PREVIEW, "feature.implicit.classes"),
SCOPED_VALUES(LanguageLevel.JDK_21_PREVIEW, "feature.scoped.values"),
STRUCTURED_CONCURRENCY(LanguageLevel.JDK_21_PREVIEW, "feature.structured.concurrency"),
SEQUENCED_COLLECTIONS(LanguageLevel.JDK_21, "feature.sequenced.collections"),
CLASSFILE_API(LanguageLevel.JDK_22_PREVIEW, "feature.classfile.api"),
STREAM_GATHERERS(LanguageLevel.JDK_22_PREVIEW, "feature.stream.gatherers"),
STATEMENTS_BEFORE_SUPER(LanguageLevel.JDK_22_PREVIEW, "feature.statements.before.super"),