mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 06:15:41 +00:00
[jdk20] Reorder JavacAST child nodes for JCEnhancedForLoop
This commit is contained in:
1 parent
f87b6716bc
commit
02fe21f27c
1 file changed
+1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user