Skip to content

Commit 02fe21f

Browse files
Rawi01rzwitserloot
authored andcommitted
[jdk20] Reorder JavacAST child nodes for JCEnhancedForLoop
1 parent f87b671 commit 02fe21f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/lombok/javac/JavacAST.java

+1
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ private Method getBodyMethod(Class<?> c) {
516516

517517
private JavacNode buildEnhancedForLoop(JCEnhancedForLoop loop) {
518518
if (setAndGetAsHandled(loop)) return null;
519+
519520
List<JavacNode> childNodes = new ArrayList<JavacNode>();
520521
// The order of the child elements is important and must be kept
521522
addIfNotNull(childNodes, buildTree(getVarOrRecordPattern(loop), Kind.STATEMENT));

0 commit comments

Comments
 (0)