From c9f38409ccb84f315fa61490baacea9f070b646d Mon Sep 17 00:00:00 2001 From: Aggelos Biboudis Date: Tue, 22 Oct 2024 09:39:04 +0000 Subject: [PATCH] 8342679: Clean up PreviewFeature.Feature Reviewed-by: liach, vromero --- .../share/classes/jdk/internal/javac/PreviewFeature.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java b/src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java index 05049effef8..c6ae5b13787 100644 --- a/src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java +++ b/src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java @@ -64,11 +64,10 @@ public @interface PreviewFeature { * Values should be annotated with the feature's {@code JEP}. */ public enum Feature { - // not used, but required for interim javac to not warn. - VIRTUAL_THREADS, - FOREIGN, - @JEP(number=459, title="String Templates", status="Second Preview") - STRING_TEMPLATES, + // while building the interim javac, the ClassReader will produce a warning when loading a class + // keeping the constant of a feature that has been integrated or dropped, serves the purpose of muting such warnings. + + //--- @JEP(number=477, title="Implicitly Declared Classes and Instance Main Methods", status="Third Preview") IMPLICIT_CLASSES, @JEP(number=481, title="Scoped Values", status="Third Preview")