From 02fe21f27c4dce1fd7525f2da5bdf5d66ff19f7b Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Sun, 19 Feb 2023 11:30:09 +0100 Subject: [jdk20] Reorder JavacAST child nodes for JCEnhancedForLoop --- src/core/lombok/javac/JavacAST.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/lombok/javac/JavacAST.java b/src/core/lombok/javac/JavacAST.java index 8c5b66c5..319d9dd2 100644 --- a/src/core/lombok/javac/JavacAST.java +++ b/src/core/lombok/javac/JavacAST.java @@ -516,6 +516,7 @@ public class JavacAST extends AST { private JavacNode buildEnhancedForLoop(JCEnhancedForLoop loop) { if (setAndGetAsHandled(loop)) return null; + List childNodes = new ArrayList(); // The order of the child elements is important and must be kept addIfNotNull(childNodes, buildTree(getVarOrRecordPattern(loop), Kind.STATEMENT)); -- cgit