File tree Expand file tree Collapse file tree
org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/*******************************************************************************
2- * Copyright (c) 2014, 2025 Mateusz Matela and others.
2+ * Copyright (c) 2014, 2026 Mateusz Matela and others.
33 *
44 * This program and the accompanying materials
55 * are made available under the terms of the Eclipse Public License 2.0
@@ -164,7 +164,7 @@ public boolean visit(EnumDeclaration node) {
164164 for (int i = 0 ; i < enumConstants .size (); i ++) {
165165 EnumConstantDeclaration declaration = enumConstants .get (i );
166166 if (declaration .getJavadoc () != null )
167- this .tm .firstTokenIn (declaration , TokenNameCOMMENT_JAVADOC ).breakBefore ();
167+ this .tm .firstTokenIn (declaration , ANY ).breakBefore ();
168168 if (declaration .getAnonymousClassDeclaration () != null && i < enumConstants .size () - 1 )
169169 this .tm .firstTokenAfter (declaration , TokenNameCOMMA ).breakAfter ();
170170 }
You can’t perform that action at this time.
0 commit comments