From 8ff2aff0549e68e0b25b3c6466fb54a0083a5060 Mon Sep 17 00:00:00 2001 From: Jason Feng Date: Wed, 11 Oct 2023 11:50:10 -0400 Subject: [PATCH] Fix CommentStyle.JAVADOC missed by merging script Replaced dc = token.comment(CommentStyle.JAVADOC) with dc = token.docComment(). Signed-off-by: Jason Feng --- .../share/classes/com/sun/tools/javac/parser/JavacParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java b/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java index fff459aaa50..077e7ed7a6c 100644 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java @@ -2969,7 +2969,7 @@ List blockStatement() { } } if ((isPrimitiveModifier() && allowPrimitiveClasses) || (isValueModifier() || isIdentityModifier()) && allowValueClasses) { - dc = token.comment(CommentStyle.JAVADOC); + dc = token.docComment(); return List.of(classOrRecordOrInterfaceOrEnumDeclaration(modifiersOpt(), dc)); } if (isRecordStart() && allowRecords) {