Skip to content

Commit

Permalink
[jdk20] Reorder JavacAST child nodes for JCEnhancedForLoop
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawi01 authored and rzwitserloot committed Mar 22, 2023
1 parent f87b671 commit 02fe21f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/lombok/javac/JavacAST.java
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ private Method getBodyMethod(Class<?> c) {

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));
Expand Down

0 comments on commit 02fe21f

Please sign in to comment.