aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2023-02-19 11:30:09 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2023-03-22 12:35:53 +0100
commit02fe21f27c4dce1fd7525f2da5bdf5d66ff19f7b (patch)
tree90ec43cc0b3ff3e96aed362c70a0dec5fa71db3a
parentf87b6716bc6f85676d0aaf89bd670b6161e5373f (diff)
downloadlombok-02fe21f27c4dce1fd7525f2da5bdf5d66ff19f7b.tar.gz
lombok-02fe21f27c4dce1fd7525f2da5bdf5d66ff19f7b.tar.bz2
lombok-02fe21f27c4dce1fd7525f2da5bdf5d66ff19f7b.zip
[jdk20] Reorder JavacAST child nodes for JCEnhancedForLoop
-rw-r--r--src/core/lombok/javac/JavacAST.java1
1 files changed, 1 insertions, 0 deletions
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<JavacAST, JavacNode, JCTree> {
private JavacNode buildEnhancedForLoop(JCEnhancedForLoop loop) {
if (setAndGetAsHandled(loop)) return null;
+
List<JavacNode> childNodes = new ArrayList<JavacNode>();
// The order of the child elements is important and must be kept
addIfNotNull(childNodes, buildTree(getVarOrRecordPattern(loop), Kind.STATEMENT));