From 9cb9af68659eaa60c9523c23a85ea37af57a5280 Mon Sep 17 00:00:00 2001 From: Vicente Romero Date: Tue, 16 Mar 2021 19:37:56 +0000 Subject: [PATCH] 8260959: remove RECORDS from PreviewFeature.Feature enum Reviewed-by: jlahoda --- .../share/classes/jdk/internal/javac/PreviewFeature.java | 6 ------ 1 file changed, 6 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 1eac687ebca..dfa3435a3f0 100644 --- a/src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java +++ b/src/java.base/share/classes/jdk/internal/javac/PreviewFeature.java @@ -54,12 +54,6 @@ public @interface PreviewFeature { public boolean reflective() default false; public enum Feature { - // The RECORDS enum constant is not used in the JDK 16 codebase, but - // exists to support the bootcycle build of JDK 16. The bootcycle build - // of JDK 16 is performed with JDK 15 and the PreviewFeature type from - // JDK 16. Since the JDK 15 codebase uses the enum constant, it is - // necessary for PreviewFeature in JDK 16 to declare the enum constant. - RECORDS, SEALED_CLASSES, /** * A key for testing.