aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/JavacAST.java
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2023-02-18 23:10:57 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2023-03-22 12:35:38 +0100
commitf87b6716bc6f85676d0aaf89bd670b6161e5373f (patch)
treeb3ace5001dee5d29dcebc9df8f3f57b421ea199e /src/core/lombok/javac/JavacAST.java
parent8c0081a806a3c772f29be5c038024a5a941c4be6 (diff)
downloadlombok-f87b6716bc6f85676d0aaf89bd670b6161e5373f.tar.gz
lombok-f87b6716bc6f85676d0aaf89bd670b6161e5373f.tar.bz2
lombok-f87b6716bc6f85676d0aaf89bd670b6161e5373f.zip
[jdk20] Adds support for updated JCEnhancedForLoop
Diffstat (limited to 'src/core/lombok/javac/JavacAST.java')
-rw-r--r--src/core/lombok/javac/JavacAST.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/lombok/javac/JavacAST.java b/src/core/lombok/javac/JavacAST.java
index c09120c1..8c5b66c5 100644
--- a/src/core/lombok/javac/JavacAST.java
+++ b/src/core/lombok/javac/JavacAST.java
@@ -516,7 +516,6 @@ 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));