aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/changelog.markdown1
-rw-r--r--src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java2
-rwxr-xr-xsrc/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java6
-rwxr-xr-xsrc/core/lombok/eclipse/handlers/HandleBuilder.java27
-rwxr-xr-xsrc/core/lombok/eclipse/handlers/HandleConstructor.java2
-rwxr-xr-xsrc/core/lombok/eclipse/handlers/HandleSuperBuilder.java2
-rw-r--r--src/core/lombok/javac/handlers/HandleBuilder.java13
-rw-r--r--src/core/lombok/javac/handlers/HandleSuperBuilder.java2
-rw-r--r--src/core/lombok/javac/handlers/JavacHandlerUtil.java2
-rw-r--r--src/core/lombok/javac/handlers/JavacSingularsRecipes.java6
-rw-r--r--test/core/src/lombok/DirectoryRunner.java17
-rw-r--r--test/transform/resource/after-delombok/BuilderComplex.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderDefaults.java6
-rw-r--r--test/transform/resource/after-delombok/BuilderDefaultsGenerics.java6
-rw-r--r--test/transform/resource/after-delombok/BuilderDefaultsWarnings.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderGenericMethod.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderInstanceMethod.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderJavadoc.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderSimple.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderSimpleWithSetterPrefix.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderTypeAnnos.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderTypeAnnosWithSetterPrefix.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderWithAccessors.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderWithBadNames.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderWithDeprecated.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderWithExistingBuilderClass.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderWithExistingBuilderClassWithSetterPrefix.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderWithNoBuilderMethod.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderWithNonNull.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderWithNonNullWithSetterPrefix.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderWithRecursiveGenerics.java2
-rw-r--r--test/transform/resource/after-delombok/BuilderWithToBuilder.java4
-rw-r--r--test/transform/resource/after-delombok/BuilderWithTolerate.java2
-rw-r--r--test/transform/resource/after-delombok/CheckerFrameworkBuilder.java4
-rw-r--r--test/transform/resource/after-delombok/ConstructorsWithBuilderDefaults.java4
-rw-r--r--test/transform/resource/after-delombok/ConstructorsWithBuilderDefaults2.java6
-rw-r--r--test/transform/resource/after-delombok/JacksonJsonProperty.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderComplex.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderDefaults.java8
-rw-r--r--test/transform/resource/after-ecj/BuilderDefaultsGenerics.java11
-rw-r--r--test/transform/resource/after-ecj/BuilderDefaultsWarnings.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderGenericMethod.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderInstanceMethod.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderJavadoc.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderSimple.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderSimpleWithSetterPrefix.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderTypeAnnos.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderTypeAnnosWithSetterPrefix.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderWithAccessors.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderWithBadNames.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderWithDeprecated.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderWithExistingBuilderClass.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderWithExistingBuilderClassWithSetterPrefix.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderWithNoBuilderMethod.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderWithNonNull.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderWithNonNullWithSetterPrefix.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderWithRecursiveGenerics.java2
-rw-r--r--test/transform/resource/after-ecj/BuilderWithToBuilder.java4
-rw-r--r--test/transform/resource/after-ecj/BuilderWithTolerate.java2
-rw-r--r--test/transform/resource/after-ecj/CheckerFrameworkBuilder.java5
-rw-r--r--test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults.java5
-rw-r--r--test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java8
-rw-r--r--test/transform/resource/after-ecj/JacksonJsonProperty.java2
63 files changed, 144 insertions, 87 deletions
diff --git a/doc/changelog.markdown b/doc/changelog.markdown
index 13cceff8..40a0e120 100644
--- a/doc/changelog.markdown
+++ b/doc/changelog.markdown
@@ -5,6 +5,7 @@ Lombok Changelog
* PLATFORM: Support for JDK13 (including `yield` in switch expressions, as well as delombok having a nicer style for arrow-style switch blocks, and text blocks).
* FEATURE: You can now configure a builder's 'setter' prefixes via `@Builder(setterPrefix = "set")` for example. We discourage doing this, but if some library you use requires them, have at it. [Pull Request #2174](https://github.com/rzwitserloot/lombok/pull/2174], [Issue #1805](https://github.com/rzwitserloot/lombok/issues/1805).
* BUGFIX: Referring to an inner class inside the generics on a class marked with `@SuperBuilder` would cause the error `wrong number of type arguments; required 3` [Issue #2262](https://github.com/rzwitserloot/lombok/issues/2262); fixed by github user [`@Lekanich`](https://github.com/rzwitserloot/lombok/issues/2262) - thank you!
+* BUGFIX: Some of the code generated by `@Builder` did not include `this.` prefixes when accessing fields. While semantically it didn't matter, if you use the 'add this prefix for field accesses' save action in eclipse, the save action would break. [Issue #2327](https://github.com/rzwitserloot/lombok/issues/2327)
* IMPROBABLE BREAKING CHANGE: Lombok now generates qualified types (so, `Outer.Inner` instead of just `Inner`) in most type signatures that it generates; this should avoid exotic scenarios where the types lombok puts in signatures end up referring to unintended other types, which can occur if your class implements an interface that itself defines a type with the same name as one defined in your source file. I told you it was exotic. Thanks to Hunter Anderson for doing some preliminary work on this change. [Issue #2268](https://github.com/rzwitserloot/lombok/issues/2268)
diff --git a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
index 1c988d31..948902d5 100644
--- a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
+++ b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009-2019 The Project Lombok Authors.
+ * Copyright (C) 2009-2020 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
diff --git a/src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java b/src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java
index cb2ebe18..9d79d75c 100755
--- a/src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java
+++ b/src/core/lombok/eclipse/handlers/EclipseSingularsRecipes.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2015-2019 The Project Lombok Authors.
+ * Copyright (C) 2015-2020 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -273,6 +273,10 @@ public class EclipseSingularsRecipes {
public abstract void appendBuildCode(SingularData data, EclipseNode builderType, List<Statement> statements, char[] targetVariableName, String builderVariable);
+ public boolean shadowedDuringBuild() {
+ return true;
+ }
+
public boolean requiresCleaning() {
try {
return !getClass().getMethod("appendCleaningCode", SingularData.class, EclipseNode.class, List.class).getDeclaringClass().equals(EclipseSingularizer.class);
diff --git a/src/core/lombok/eclipse/handlers/HandleBuilder.java b/src/core/lombok/eclipse/handlers/HandleBuilder.java
index 6cc5bd57..3f711a19 100755
--- a/src/core/lombok/eclipse/handlers/HandleBuilder.java
+++ b/src/core/lombok/eclipse/handlers/HandleBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013-2019 The Project Lombok Authors.
+ * Copyright (C) 2013-2020 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -40,7 +40,6 @@ import org.eclipse.jdt.internal.compiler.ast.Argument;
import org.eclipse.jdt.internal.compiler.ast.ArrayInitializer;
import org.eclipse.jdt.internal.compiler.ast.Assignment;
import org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration;
-import org.eclipse.jdt.internal.compiler.ast.ConditionalExpression;
import org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration;
import org.eclipse.jdt.internal.compiler.ast.EqualExpression;
import org.eclipse.jdt.internal.compiler.ast.Expression;
@@ -713,6 +712,13 @@ public class HandleBuilder extends EclipseAnnotationHandler<Builder> {
List<Expression> args = new ArrayList<Expression>();
for (BuilderFieldData bfd : builderFields) {
if (bfd.nameOfSetFlag != null) {
+ LocalDeclaration ld = new LocalDeclaration(bfd.builderFieldName, 0, 0);
+ ld.type = copyType(bfd.type);
+ FieldReference builderAssign = new FieldReference(bfd.builderFieldName, 0);
+ builderAssign.receiver = new ThisReference(0, 0);
+ ld.initialization = builderAssign;
+ statements.add(ld);
+
MessageSend inv = new MessageSend();
inv.sourceStart = source.sourceStart;
inv.sourceEnd = source.sourceEnd;
@@ -720,12 +726,19 @@ public class HandleBuilder extends EclipseAnnotationHandler<Builder> {
inv.selector = bfd.nameOfDefaultProvider;
inv.typeArguments = typeParameterNames(((TypeDeclaration) type.get()).typeParameters);
- args.add(new ConditionalExpression(
- new SingleNameReference(bfd.nameOfSetFlag, 0L),
- new SingleNameReference(bfd.builderFieldName, 0L),
- inv));
- } else {
+ Assignment defaultAssign = new Assignment(new SingleNameReference(bfd.builderFieldName, 0L), inv, 0);
+ FieldReference thisSet = new FieldReference(bfd.nameOfSetFlag, 0L);
+ thisSet.receiver = new ThisReference(0, 0);
+ Expression thisNotSet = new UnaryExpression(thisSet, OperatorIds.NOT);
+ statements.add(new IfStatement(thisNotSet, defaultAssign, 0, 0));
+ }
+
+ if (bfd.nameOfSetFlag != null || (bfd.singularData != null && bfd.singularData.getSingularizer().shadowedDuringBuild())) {
args.add(new SingleNameReference(bfd.builderFieldName, 0L));
+ } else {
+ FieldReference fr = new FieldReference(bfd.builderFieldName, 0L);
+ fr.receiver = new ThisReference(0, 0);
+ args.add(fr);
}
}
diff --git a/src/core/lombok/eclipse/handlers/HandleConstructor.java b/src/core/lombok/eclipse/handlers/HandleConstructor.java
index 7cb2036b..a5716d9c 100755
--- a/src/core/lombok/eclipse/handlers/HandleConstructor.java
+++ b/src/core/lombok/eclipse/handlers/HandleConstructor.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010-2019 The Project Lombok Authors.
+ * Copyright (C) 2010-2020 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
diff --git a/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java b/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
index fbd4ce24..3a2e59f7 100755
--- a/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
+++ b/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013-2019 The Project Lombok Authors.
+ * Copyright (C) 2013-2020 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
diff --git a/src/core/lombok/javac/handlers/HandleBuilder.java b/src/core/lombok/javac/handlers/HandleBuilder.java
index 00741249..11666048 100644
--- a/src/core/lombok/javac/handlers/HandleBuilder.java
+++ b/src/core/lombok/javac/handlers/HandleBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013-2019 The Project Lombok Authors.
+ * Copyright (C) 2013-2020 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -661,12 +661,17 @@ public class HandleBuilder extends JavacAnnotationHandler<Builder> {
}
ListBuffer<JCExpression> args = new ListBuffer<JCExpression>();
+ Name thisName = type.toName("this");
for (BuilderFieldData bfd : builderFields) {
if (bfd.nameOfSetFlag != null) {
- statements.append(maker.VarDef(maker.Modifiers(0L), bfd.builderFieldName, cloneType(maker, bfd.type, source, tdParent.getContext()), maker.Select(maker.Ident(type.toName("this")), bfd.builderFieldName)));
- statements.append(maker.If(maker.Unary(CTC_NOT, maker.Ident(bfd.nameOfSetFlag)), maker.Exec(maker.Assign(maker.Ident(bfd.builderFieldName), maker.Apply(typeParameterNames(maker, ((JCClassDecl) tdParent.get()).typarams), maker.Select(maker.Ident(((JCClassDecl) tdParent.get()).name), bfd.nameOfDefaultProvider), List.<JCExpression>nil()))), null));
+ statements.append(maker.VarDef(maker.Modifiers(0L), bfd.builderFieldName, cloneType(maker, bfd.type, source, tdParent.getContext()), maker.Select(maker.Ident(thisName), bfd.builderFieldName)));
+ statements.append(maker.If(maker.Unary(CTC_NOT, maker.Select(maker.Ident(thisName), bfd.nameOfSetFlag)), maker.Exec(maker.Assign(maker.Ident(bfd.builderFieldName), maker.Apply(typeParameterNames(maker, ((JCClassDecl) tdParent.get()).typarams), maker.Select(maker.Ident(((JCClassDecl) tdParent.get()).name), bfd.nameOfDefaultProvider), List.<JCExpression>nil()))), null));
+ }
+ if (bfd.nameOfSetFlag != null || (bfd.singularData != null && bfd.singularData.getSingularizer().shadowedDuringBuild())) {
+ args.append(maker.Ident(bfd.builderFieldName));
+ } else {
+ args.append(maker.Select(maker.Ident(thisName), bfd.builderFieldName));
}
- args.append(maker.Ident(bfd.builderFieldName));
}
if (addCleaning) {
diff --git a/src/core/lombok/javac/handlers/HandleSuperBuilder.java b/src/core/lombok/javac/handlers/HandleSuperBuilder.java
index d37b3049..b3002946 100644
--- a/src/core/lombok/javac/handlers/HandleSuperBuilder.java
+++ b/src/core/lombok/javac/handlers/HandleSuperBuilder.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013-2019 The Project Lombok Authors.
+ * Copyright (C) 2013-2020 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
diff --git a/src/core/lombok/javac/handlers/JavacHandlerUtil.java b/src/core/lombok/javac/handlers/JavacHandlerUtil.java
index 885d8ffb..c8fe5278 100644
--- a/src/core/lombok/javac/handlers/JavacHandlerUtil.java
+++ b/src/core/lombok/javac/handlers/JavacHandlerUtil.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009-2019 The Project Lombok Authors.
+ * Copyright (C) 2009-2020 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
diff --git a/src/core/lombok/javac/handlers/JavacSingularsRecipes.java b/src/core/lombok/javac/handlers/JavacSingularsRecipes.java
index 86f148ca..c1e6edd8 100644
--- a/src/core/lombok/javac/handlers/JavacSingularsRecipes.java
+++ b/src/core/lombok/javac/handlers/JavacSingularsRecipes.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2015-2019 The Project Lombok Authors.
+ * Copyright (C) 2015-2020 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -344,6 +344,10 @@ public class JavacSingularsRecipes {
public abstract void appendBuildCode(SingularData data, JavacNode builderType, JCTree source, ListBuffer<JCStatement> statements, Name targetVariableName, String builderVariable);
+ public boolean shadowedDuringBuild() {
+ return true;
+ }
+
public boolean requiresCleaning() {
try {
return !getClass().getMethod("appendCleaningCode", SingularData.class, JavacNode.class, JCTree.class, ListBuffer.class).getDeclaringClass().equals(JavacSingularizer.class);
diff --git a/test/core/src/lombok/DirectoryRunner.java b/test/core/src/lombok/DirectoryRunner.java
index ffadba8f..116b9d94 100644
--- a/test/core/src/lombok/DirectoryRunner.java
+++ b/test/core/src/lombok/DirectoryRunner.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009-2019 The Project Lombok Authors.
+ * Copyright (C) 2009-2020 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -24,20 +24,23 @@ package lombok;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
+import java.util.Arrays;
+import java.util.List;
import java.util.Map;
import java.util.TreeMap;
-import lombok.eclipse.Eclipse;
-import lombok.javac.Javac;
-
import org.junit.runner.Description;
import org.junit.runner.Runner;
import org.junit.runner.notification.Failure;
import org.junit.runner.notification.RunNotifier;
+import lombok.eclipse.Eclipse;
+import lombok.javac.Javac;
+
public class DirectoryRunner extends Runner {
- /** Fill in a file name (or multiple, space separated) to reduce the testset to just the named file(s). */
- private static final String DEBUG_FOCUS_ON_FILE = "";
+ /** Add 1 or more file names to reduce the testset to just the named file(s). No files = test it all. */
+ private static final List<String> DEBUG_FOCUS_ON_FILE = Arrays.asList(
+ );
public enum Compiler {
DELOMBOK {
@@ -80,7 +83,7 @@ public class DirectoryRunner extends Runner {
private static final FileFilter JAVA_FILE_FILTER = new FileFilter() {
@Override public boolean accept(File file) {
return file.isFile() && file.getName().endsWith(".java") &&
- (DEBUG_FOCUS_ON_FILE.isEmpty() || (" " + DEBUG_FOCUS_ON_FILE + " ").contains(" " + file.getName() + " "));
+ (DEBUG_FOCUS_ON_FILE.isEmpty() || DEBUG_FOCUS_ON_FILE.contains(file.getName()));
}
};
diff --git a/test/transform/resource/after-delombok/BuilderComplex.java b/test/transform/resource/after-delombok/BuilderComplex.java
index a82a0497..009ebe6c 100644
--- a/test/transform/resource/after-delombok/BuilderComplex.java
+++ b/test/transform/resource/after-delombok/BuilderComplex.java
@@ -37,7 +37,7 @@ class BuilderComplex {
}
@java.lang.SuppressWarnings("all")
public void execute() {
- BuilderComplex.<T>testVoidWithGenerics(number, arg2, arg3, selfRef);
+ BuilderComplex.<T>testVoidWithGenerics(this.number, this.arg2, this.arg3, this.selfRef);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderDefaults.java b/test/transform/resource/after-delombok/BuilderDefaults.java
index eb692267..5a563024 100644
--- a/test/transform/resource/after-delombok/BuilderDefaults.java
+++ b/test/transform/resource/after-delombok/BuilderDefaults.java
@@ -51,10 +51,10 @@ public final class BuilderDefaults {
@java.lang.SuppressWarnings("all")
public BuilderDefaults build() {
int x$value = this.x$value;
- if (!x$set) x$value = BuilderDefaults.$default$x();
+ if (!this.x$set) x$value = BuilderDefaults.$default$x();
long z$value = this.z$value;
- if (!z$set) z$value = BuilderDefaults.$default$z();
- return new BuilderDefaults(x$value, name, z$value);
+ if (!this.z$set) z$value = BuilderDefaults.$default$z();
+ return new BuilderDefaults(x$value, this.name, z$value);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderDefaultsGenerics.java b/test/transform/resource/after-delombok/BuilderDefaultsGenerics.java
index fb187e27..71dc7c5f 100644
--- a/test/transform/resource/after-delombok/BuilderDefaultsGenerics.java
+++ b/test/transform/resource/after-delombok/BuilderDefaultsGenerics.java
@@ -59,11 +59,11 @@ public class BuilderDefaultsGenerics<N extends Number, T, R extends List<T>> {
@java.lang.SuppressWarnings("all")
public BuilderDefaultsGenerics<N, T, R> build() {
java.util.concurrent.Callable<N> callable$value = this.callable$value;
- if (!callable$set) callable$value = BuilderDefaultsGenerics.<N, T, R>$default$callable();
+ if (!this.callable$set) callable$value = BuilderDefaultsGenerics.<N, T, R>$default$callable();
T tee$value = this.tee$value;
- if (!tee$set) tee$value = BuilderDefaultsGenerics.<N, T, R>$default$tee();
+ if (!this.tee$set) tee$value = BuilderDefaultsGenerics.<N, T, R>$default$tee();
R arrr$value = this.arrr$value;
- if (!arrr$set) arrr$value = BuilderDefaultsGenerics.<N, T, R>$default$arrr();
+ if (!this.arrr$set) arrr$value = BuilderDefaultsGenerics.<N, T, R>$default$arrr();
return new BuilderDefaultsGenerics<N, T, R>(callable$value, tee$value, arrr$value);
}
@java.lang.Override
diff --git a/test/transform/resource/after-delombok/BuilderDefaultsWarnings.java b/test/transform/resource/after-delombok/BuilderDefaultsWarnings.java
index f00d42af..4df98158 100644
--- a/test/transform/resource/after-delombok/BuilderDefaultsWarnings.java
+++ b/test/transform/resource/after-delombok/BuilderDefaultsWarnings.java
@@ -60,7 +60,7 @@ public class BuilderDefaultsWarnings {
default:
items = java.util.Collections.unmodifiableList(new java.util.ArrayList<String>(this.items));
}
- return new BuilderDefaultsWarnings(x, z, items);
+ return new BuilderDefaultsWarnings(this.x, this.z, items);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderGenericMethod.java b/test/transform/resource/after-delombok/BuilderGenericMethod.java
index 053e8ce4..d57f6415 100644
--- a/test/transform/resource/after-delombok/BuilderGenericMethod.java
+++ b/test/transform/resource/after-delombok/BuilderGenericMethod.java
@@ -25,7 +25,7 @@ class BuilderGenericMethod<T> {
}
@java.lang.SuppressWarnings("all")
public Map<N, T> build() {
- return BuilderGenericMethod.this.<N>foo(a, b);
+ return BuilderGenericMethod.this.<N>foo(this.a, this.b);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderInstanceMethod.java b/test/transform/resource/after-delombok/BuilderInstanceMethod.java
index 9389d871..d0d5833f 100644
--- a/test/transform/resource/after-delombok/BuilderInstanceMethod.java
+++ b/test/transform/resource/after-delombok/BuilderInstanceMethod.java
@@ -38,7 +38,7 @@ class BuilderInstanceMethod<T> {
}
@java.lang.SuppressWarnings("all")
public String build() {
- return BuilderInstanceMethod.this.create(show, yes, also, $andMe);
+ return BuilderInstanceMethod.this.create(this.show, this.yes, this.also, this.$andMe);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderJavadoc.java b/test/transform/resource/after-delombok/BuilderJavadoc.java
index 1e004e1e..e64bed5f 100644
--- a/test/transform/resource/after-delombok/BuilderJavadoc.java
+++ b/test/transform/resource/after-delombok/BuilderJavadoc.java
@@ -69,7 +69,7 @@ class BuilderJavadoc<T> {
}
@java.lang.SuppressWarnings("all")
public BuilderJavadoc<T> build() {
- return new BuilderJavadoc<T>(basic, getsetwith, predef, predefWithJavadoc);
+ return new BuilderJavadoc<T>(this.basic, this.getsetwith, this.predef, this.predefWithJavadoc);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderSimple.java b/test/transform/resource/after-delombok/BuilderSimple.java
index 2c031af0..925d0dd3 100644
--- a/test/transform/resource/after-delombok/BuilderSimple.java
+++ b/test/transform/resource/after-delombok/BuilderSimple.java
@@ -30,7 +30,7 @@ class BuilderSimple<T> {
}
@java.lang.SuppressWarnings("all")
public BuilderSimple<T> build() {
- return new BuilderSimple<T>(yes, also);
+ return new BuilderSimple<T>(this.yes, this.also);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderSimpleWithSetterPrefix.java b/test/transform/resource/after-delombok/BuilderSimpleWithSetterPrefix.java
index 873fa928..ef0d8fc6 100644
--- a/test/transform/resource/after-delombok/BuilderSimpleWithSetterPrefix.java
+++ b/test/transform/resource/after-delombok/BuilderSimpleWithSetterPrefix.java
@@ -19,7 +19,7 @@ class BuilderSimpleWithSetterPrefix<T> {
}
@java.lang.SuppressWarnings("all")
public BuilderSimpleWithSetterPrefix<T> build() {
- return new BuilderSimpleWithSetterPrefix<T>(unprefixed);
+ return new BuilderSimpleWithSetterPrefix<T>(this.unprefixed);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderTypeAnnos.java b/test/transform/resource/after-delombok/BuilderTypeAnnos.java
index 92a7e3f1..bd450d5b 100644
--- a/test/transform/resource/after-delombok/BuilderTypeAnnos.java
+++ b/test/transform/resource/after-delombok/BuilderTypeAnnos.java
@@ -29,7 +29,7 @@ class BuilderTypeAnnos {
}
@java.lang.SuppressWarnings("all")
public BuilderTypeAnnos build() {
- return new BuilderTypeAnnos(foo);
+ return new BuilderTypeAnnos(this.foo);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderTypeAnnosWithSetterPrefix.java b/test/transform/resource/after-delombok/BuilderTypeAnnosWithSetterPrefix.java
index 51261508..b221e69d 100644
--- a/test/transform/resource/after-delombok/BuilderTypeAnnosWithSetterPrefix.java
+++ b/test/transform/resource/after-delombok/BuilderTypeAnnosWithSetterPrefix.java
@@ -29,7 +29,7 @@ class BuilderTypeAnnosWithSetterPrefix {
}
@java.lang.SuppressWarnings("all")
public BuilderTypeAnnosWithSetterPrefix build() {
- return new BuilderTypeAnnosWithSetterPrefix(foo);
+ return new BuilderTypeAnnosWithSetterPrefix(this.foo);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderWithAccessors.java b/test/transform/resource/after-delombok/BuilderWithAccessors.java
index f13200cf..3fa47034 100644
--- a/test/transform/resource/after-delombok/BuilderWithAccessors.java
+++ b/test/transform/resource/after-delombok/BuilderWithAccessors.java
@@ -45,7 +45,7 @@ class BuilderWithAccessors {
}
@java.lang.SuppressWarnings("all")
public BuilderWithAccessors build() {
- return new BuilderWithAccessors(plower, upper, foo, _bar);
+ return new BuilderWithAccessors(this.plower, this.upper, this.foo, this._bar);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderWithBadNames.java b/test/transform/resource/after-delombok/BuilderWithBadNames.java
index fee61299..d77ca71c 100644
--- a/test/transform/resource/after-delombok/BuilderWithBadNames.java
+++ b/test/transform/resource/after-delombok/BuilderWithBadNames.java
@@ -27,7 +27,7 @@ public class BuilderWithBadNames {
}
@java.lang.SuppressWarnings("all")
public BuilderWithBadNames build() {
- return new BuilderWithBadNames(build, toString);
+ return new BuilderWithBadNames(this.build, this.toString);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderWithDeprecated.java b/test/transform/resource/after-delombok/BuilderWithDeprecated.java
index 2ac252c5..d61619ed 100644
--- a/test/transform/resource/after-delombok/BuilderWithDeprecated.java
+++ b/test/transform/resource/after-delombok/BuilderWithDeprecated.java
@@ -99,7 +99,7 @@ public class BuilderWithDeprecated {
strings = java.util.Collections.unmodifiableList(new java.util.ArrayList<String>(this.strings));
}
com.google.common.collect.ImmutableList<Integer> numbers = this.numbers == null ? com.google.common.collect.ImmutableList.<Integer>of() : this.numbers.build();
- return new BuilderWithDeprecated(dep1, dep2, strings, numbers);
+ return new BuilderWithDeprecated(this.dep1, this.dep2, strings, numbers);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderWithExistingBuilderClass.java b/test/transform/resource/after-delombok/BuilderWithExistingBuilderClass.java
index 82597b6e..88eeee64 100644
--- a/test/transform/resource/after-delombok/BuilderWithExistingBuilderClass.java
+++ b/test/transform/resource/after-delombok/BuilderWithExistingBuilderClass.java
@@ -25,7 +25,7 @@ class BuilderWithExistingBuilderClass<T, K extends Number> {
}
@java.lang.SuppressWarnings("all")
public BuilderWithExistingBuilderClass<String, Z> build() {
- return BuilderWithExistingBuilderClass.<Z>staticMethod(arg1, arg2, arg3);
+ return BuilderWithExistingBuilderClass.<Z>staticMethod(this.arg1, this.arg2, this.arg3);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderWithExistingBuilderClassWithSetterPrefix.java b/test/transform/resource/after-delombok/BuilderWithExistingBuilderClassWithSetterPrefix.java
index 0d3dcab8..b1ed5fef 100644
--- a/test/transform/resource/after-delombok/BuilderWithExistingBuilderClassWithSetterPrefix.java
+++ b/test/transform/resource/after-delombok/BuilderWithExistingBuilderClassWithSetterPrefix.java
@@ -25,7 +25,7 @@ class BuilderWithExistingBuilderClassWithSetterPrefix<T, K extends Number> {
}
@java.lang.SuppressWarnings("all")
public BuilderWithExistingBuilderClassWithSetterPrefix<String, Z> build() {
- return BuilderWithExistingBuilderClassWithSetterPrefix.<Z>staticMethod(arg1, arg2, arg3);
+ return BuilderWithExistingBuilderClassWithSetterPrefix.<Z>staticMethod(this.arg1, this.arg2, this.arg3);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderWithNoBuilderMethod.java b/test/transform/resource/after-delombok/BuilderWithNoBuilderMethod.java
index cfd86ef7..d555ab06 100644
--- a/test/transform/resource/after-delombok/BuilderWithNoBuilderMethod.java
+++ b/test/transform/resource/after-delombok/BuilderWithNoBuilderMethod.java
@@ -18,7 +18,7 @@ class BuilderWithNoBuilderMethod {
}
@java.lang.SuppressWarnings("all")
public BuilderWithNoBuilderMethod build() {
- return new BuilderWithNoBuilderMethod(a);
+ return new BuilderWithNoBuilderMethod(this.a);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderWithNonNull.java b/test/transform/resource/after-delombok/BuilderWithNonNull.java
index b32507da..9858d5bd 100644
--- a/test/transform/resource/after-delombok/BuilderWithNonNull.java
+++ b/test/transform/resource/after-delombok/BuilderWithNonNull.java
@@ -25,7 +25,7 @@ class BuilderWithNonNull {
}
@java.lang.SuppressWarnings("all")
public BuilderWithNonNull build() {
- return new BuilderWithNonNull(id);
+ return new BuilderWithNonNull(this.id);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderWithNonNullWithSetterPrefix.java b/test/transform/resource/after-delombok/BuilderWithNonNullWithSetterPrefix.java
index 4faeb5ce..8a27f443 100644
--- a/test/transform/resource/after-delombok/BuilderWithNonNullWithSetterPrefix.java
+++ b/test/transform/resource/after-delombok/BuilderWithNonNullWithSetterPrefix.java
@@ -25,7 +25,7 @@ class BuilderWithNonNullWithSetterPrefix {
}
@java.lang.SuppressWarnings("all")
public BuilderWithNonNullWithSetterPrefix build() {
- return new BuilderWithNonNullWithSetterPrefix(id);
+ return new BuilderWithNonNullWithSetterPrefix(this.id);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderWithRecursiveGenerics.java b/test/transform/resource/after-delombok/BuilderWithRecursiveGenerics.java
index 8a89d421..33dd7d10 100644
--- a/test/transform/resource/after-delombok/BuilderWithRecursiveGenerics.java
+++ b/test/transform/resource/after-delombok/BuilderWithRecursiveGenerics.java
@@ -31,7 +31,7 @@ public class BuilderWithRecursiveGenerics {
}
@java.lang.SuppressWarnings("all")
public BuilderWithRecursiveGenerics.Test<Foo, Bar, Quz> build() {
- return new BuilderWithRecursiveGenerics.Test<Foo, Bar, Quz>(foo, bar);
+ return new BuilderWithRecursiveGenerics.Test<Foo, Bar, Quz>(this.foo, this.bar);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderWithToBuilder.java b/test/transform/resource/after-delombok/BuilderWithToBuilder.java
index 396bcdb6..2c4b0531 100644
--- a/test/transform/resource/after-delombok/BuilderWithToBuilder.java
+++ b/test/transform/resource/after-delombok/BuilderWithToBuilder.java
@@ -72,7 +72,7 @@ class BuilderWithToBuilder<T> {
default:
bars = java.util.Collections.unmodifiableList(new java.util.ArrayList<T>(this.bars));
}
- return new BuilderWithToBuilder<T>(one, two, foo, bars);
+ return new BuilderWithToBuilder<T>(this.one, this.two, this.foo, bars);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@@ -127,7 +127,7 @@ class ConstructorWithToBuilder<T> {
}
@java.lang.SuppressWarnings("all")
public ConstructorWithToBuilder<T> build() {
- return new ConstructorWithToBuilder<T>(mOne, baz, bars);
+ return new ConstructorWithToBuilder<T>(this.mOne, this.baz, this.bars);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/BuilderWithTolerate.java b/test/transform/resource/after-delombok/BuilderWithTolerate.java
index 0d1e04f7..daa02ac3 100644
--- a/test/transform/resource/after-delombok/BuilderWithTolerate.java
+++ b/test/transform/resource/after-delombok/BuilderWithTolerate.java
@@ -21,7 +21,7 @@ public class BuilderWithTolerate {
}
@java.lang.SuppressWarnings("all")
public BuilderWithTolerate build() {
- return new BuilderWithTolerate(value);
+ return new BuilderWithTolerate(this.value);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/CheckerFrameworkBuilder.java b/test/transform/resource/after-delombok/CheckerFrameworkBuilder.java
index 6db2fb73..1b993d2a 100644
--- a/test/transform/resource/after-delombok/CheckerFrameworkBuilder.java
+++ b/test/transform/resource/after-delombok/CheckerFrameworkBuilder.java
@@ -87,8 +87,8 @@ class CheckerFrameworkBuilder {
names = java.util.Collections.unmodifiableList(new java.util.ArrayList<String>(this.names));
}
int x$value = this.x$value;
- if (!x$set) x$value = CheckerFrameworkBuilder.$default$x();
- return new CheckerFrameworkBuilder(x$value, y, z, names);
+ if (!this.x$set) x$value = CheckerFrameworkBuilder.$default$x();
+ return new CheckerFrameworkBuilder(x$value, this.y, this.z, names);
}
@org.checkerframework.dataflow.qual.SideEffectFree
@java.lang.Override
diff --git a/test/transform/resource/after-delombok/ConstructorsWithBuilderDefaults.java b/test/transform/resource/after-delombok/ConstructorsWithBuilderDefaults.java
index 19acf170..d5ac9bad 100644
--- a/test/transform/resource/after-delombok/ConstructorsWithBuilderDefaults.java
+++ b/test/transform/resource/after-delombok/ConstructorsWithBuilderDefaults.java
@@ -30,8 +30,8 @@ final class ConstructorsWithBuilderDefaults {
@java.lang.SuppressWarnings("all")
public ConstructorsWithBuilderDefaults build() {
int x$value = this.x$value;
- if (!x$set) x$value = ConstructorsWithBuilderDefaults.$default$x();
- return new ConstructorsWithBuilderDefaults(x$value, y);
+ if (!this.x$set) x$value = ConstructorsWithBuilderDefaults.$default$x();
+ return new ConstructorsWithBuilderDefaults(x$value, this.y);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/ConstructorsWithBuilderDefaults2.java b/test/transform/resource/after-delombok/ConstructorsWithBuilderDefaults2.java
index 17763f3f..9609f62b 100644
--- a/test/transform/resource/after-delombok/ConstructorsWithBuilderDefaults2.java
+++ b/test/transform/resource/after-delombok/ConstructorsWithBuilderDefaults2.java
@@ -54,10 +54,10 @@ final class ConstructorsWithBuilderDefaults<T> {
@java.lang.SuppressWarnings("all")
public ConstructorsWithBuilderDefaults<T> build() {
java.util.List<T> z$value = this.z$value;
- if (!z$set) z$value = ConstructorsWithBuilderDefaults.<T>$default$z();
+ if (!this.z$set) z$value = ConstructorsWithBuilderDefaults.<T>$default$z();
T x$value = this.x$value;
- if (!x$set) x$value = ConstructorsWithBuilderDefaults.<T>$default$x();
- return new ConstructorsWithBuilderDefaults<T>(z$value, x$value, q);
+ if (!this.x$set) x$value = ConstructorsWithBuilderDefaults.<T>$default$x();
+ return new ConstructorsWithBuilderDefaults<T>(z$value, x$value, this.q);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/JacksonJsonProperty.java b/test/transform/resource/after-delombok/JacksonJsonProperty.java
index 500871b2..9ca8d7de 100644
--- a/test/transform/resource/after-delombok/JacksonJsonProperty.java
+++ b/test/transform/resource/after-delombok/JacksonJsonProperty.java
@@ -25,7 +25,7 @@ public class JacksonJsonProperty {
}
@java.lang.SuppressWarnings("all")
public JacksonJsonProperty build() {
- return new JacksonJsonProperty(kebabCaseProp);
+ return new JacksonJsonProperty(this.kebabCaseProp);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-ecj/BuilderComplex.java b/test/transform/resource/after-ecj/BuilderComplex.java
index b8265415..6a28e114 100644
--- a/test/transform/resource/after-ecj/BuilderComplex.java
+++ b/test/transform/resource/after-ecj/BuilderComplex.java
@@ -26,7 +26,7 @@ class BuilderComplex {
return this;
}
public @java.lang.SuppressWarnings("all") void execute() {
- BuilderComplex.<T>testVoidWithGenerics(number, arg2, arg3, selfRef);
+ BuilderComplex.<T>testVoidWithGenerics(this.number, this.arg2, this.arg3, this.selfRef);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((((((("BuilderComplex.TestVoidName(number=" + this.number) + ", arg2=") + this.arg2) + ", arg3=") + this.arg3) + ", selfRef=") + this.selfRef) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderDefaults.java b/test/transform/resource/after-ecj/BuilderDefaults.java
index 6226022e..46f55bef 100644
--- a/test/transform/resource/after-ecj/BuilderDefaults.java
+++ b/test/transform/resource/after-ecj/BuilderDefaults.java
@@ -25,7 +25,13 @@ public final @Value @Builder class BuilderDefaults {
return this;
}
public @java.lang.SuppressWarnings("all") BuilderDefaults build() {
- return new BuilderDefaults((x$set ? x$value : BuilderDefaults.$default$x()), name, (z$set ? z$value : BuilderDefaults.$default$z()));
+ int x$value = this.x$value;
+ if ((! this.x$set))
+ x$value = BuilderDefaults.$default$x();
+ long z$value = this.z$value;
+ if ((! this.z$set))
+ z$value = BuilderDefaults.$default$z();
+ return new BuilderDefaults(x$value, this.name, z$value);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((((("BuilderDefaults.BuilderDefaultsBuilder(x$value=" + this.x$value) + ", name=") + this.name) + ", z$value=") + this.z$value) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderDefaultsGenerics.java b/test/transform/resource/after-ecj/BuilderDefaultsGenerics.java
index 4e32de42..0dc06144 100644
--- a/test/transform/resource/after-ecj/BuilderDefaultsGenerics.java
+++ b/test/transform/resource/after-ecj/BuilderDefaultsGenerics.java
@@ -27,7 +27,16 @@ public @Builder class BuilderDefaultsGenerics<N extends Number, T, R extends Lis
return this;
}
public @java.lang.SuppressWarnings("all") BuilderDefaultsGenerics<N, T, R> build() {
- return new BuilderDefaultsGenerics<N, T, R>((callable$set ? callable$value : BuilderDefaultsGenerics.<N, T, R>$default$callable()), (tee$set ? tee$value : BuilderDefaultsGenerics.<N, T, R>$default$tee()), (arrr$set ? arrr$value : BuilderDefaultsGenerics.<N, T, R>$default$arrr()));
+ java.util.concurrent.Callable<N> callable$value = this.callable$value;
+ if ((! this.callable$set))
+ callable$value = BuilderDefaultsGenerics.<N, T, R>$default$callable();
+ T tee$value = this.tee$value;
+ if ((! this.tee$set))
+ tee$value = BuilderDefaultsGenerics.<N, T, R>$default$tee();
+ R arrr$value = this.arrr$value;
+ if ((! this.arrr$set))
+ arrr$value = BuilderDefaultsGenerics.<N, T, R>$default$arrr();
+ return new BuilderDefaultsGenerics<N, T, R>(callable$value, tee$value, arrr$value);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((((("BuilderDefaultsGenerics.BuilderDefaultsGenericsBuilder(callable$value=" + this.callable$value) + ", tee$value=") + this.tee$value) + ", arrr$value=") + this.arrr$value) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderDefaultsWarnings.java b/test/transform/resource/after-ecj/BuilderDefaultsWarnings.java
index 296f72dc..cc995aa2 100644
--- a/test/transform/resource/after-ecj/BuilderDefaultsWarnings.java
+++ b/test/transform/resource/after-ecj/BuilderDefaultsWarnings.java
@@ -45,7 +45,7 @@ public @Builder class BuilderDefaultsWarnings {
default :
items = java.util.Collections.unmodifiableList(new java.util.ArrayList<String>(this.items));
}
- return new BuilderDefaultsWarnings(x, z, items);
+ return new BuilderDefaultsWarnings(this.x, this.z, items);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((((("BuilderDefaultsWarnings.BuilderDefaultsWarningsBuilder(x=" + this.x) + ", z=") + this.z) + ", items=") + this.items) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderGenericMethod.java b/test/transform/resource/after-ecj/BuilderGenericMethod.java
index 7965599d..442d74dd 100644
--- a/test/transform/resource/after-ecj/BuilderGenericMethod.java
+++ b/test/transform/resource/after-ecj/BuilderGenericMethod.java
@@ -17,7 +17,7 @@ class BuilderGenericMethod<T> {
return this;
}
public @java.lang.SuppressWarnings("all") Map<N, T> build() {
- return BuilderGenericMethod.this.<N>foo(a, b);
+ return BuilderGenericMethod.this.<N>foo(this.a, this.b);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((("BuilderGenericMethod.MapBuilder(a=" + this.a) + ", b=") + this.b) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderInstanceMethod.java b/test/transform/resource/after-ecj/BuilderInstanceMethod.java
index 397ba113..e0bf16fd 100644
--- a/test/transform/resource/after-ecj/BuilderInstanceMethod.java
+++ b/test/transform/resource/after-ecj/BuilderInstanceMethod.java
@@ -25,7 +25,7 @@ class BuilderInstanceMethod<T> {
return this;
}
public @java.lang.SuppressWarnings("all") String build() {
- return BuilderInstanceMethod.this.create(show, yes, also, $andMe);
+ return BuilderInstanceMethod.this.create(this.show, this.yes, this.also, this.$andMe);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((((((("BuilderInstanceMethod.StringBuilder(show=" + this.show) + ", yes=") + this.yes) + ", also=") + this.also) + ", $andMe=") + this.$andMe) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderJavadoc.java b/test/transform/resource/after-ecj/BuilderJavadoc.java
index 303cbb5c..445b5417 100644
--- a/test/transform/resource/after-ecj/BuilderJavadoc.java
+++ b/test/transform/resource/after-ecj/BuilderJavadoc.java
@@ -25,7 +25,7 @@ import java.util.List;
return this;
}
public @java.lang.SuppressWarnings("all") BuilderJavadoc<T> build() {
- return new BuilderJavadoc<T>(basic, getsetwith, predef, predefWithJavadoc);
+ return new BuilderJavadoc<T>(this.basic, this.getsetwith, this.predef, this.predefWithJavadoc);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((((((("BuilderJavadoc.BuilderJavadocBuilder(basic=" + this.basic) + ", getsetwith=") + this.getsetwith) + ", predef=") + this.predef) + ", predefWithJavadoc=") + this.predefWithJavadoc) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderSimple.java b/test/transform/resource/after-ecj/BuilderSimple.java
index e371f320..36804792 100644
--- a/test/transform/resource/after-ecj/BuilderSimple.java
+++ b/test/transform/resource/after-ecj/BuilderSimple.java
@@ -15,7 +15,7 @@ import java.util.List;
return this;
}
public @java.lang.SuppressWarnings("all") BuilderSimple<T> build() {
- return new BuilderSimple<T>(yes, also);
+ return new BuilderSimple<T>(this.yes, this.also);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((("BuilderSimple.BuilderSimpleBuilder(yes=" + this.yes) + ", also=") + this.also) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderSimpleWithSetterPrefix.java b/test/transform/resource/after-ecj/BuilderSimpleWithSetterPrefix.java
index d3ce4a46..bcb3a4f5 100644
--- a/test/transform/resource/after-ecj/BuilderSimpleWithSetterPrefix.java
+++ b/test/transform/resource/after-ecj/BuilderSimpleWithSetterPrefix.java
@@ -10,7 +10,7 @@ import java.util.List;
return this;
}
public @java.lang.SuppressWarnings("all") BuilderSimpleWithSetterPrefix<T> build() {
- return new BuilderSimpleWithSetterPrefix<T>(unprefixed);
+ return new BuilderSimpleWithSetterPrefix<T>(this.unprefixed);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (("BuilderSimpleWithSetterPrefix.BuilderSimpleWithSetterPrefixBuilder(unprefixed=" + this.unprefixed) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderTypeAnnos.java b/test/transform/resource/after-ecj/BuilderTypeAnnos.java
index 18116b90..0037b435 100644
--- a/test/transform/resource/after-ecj/BuilderTypeAnnos.java
+++ b/test/transform/resource/after-ecj/BuilderTypeAnnos.java
@@ -16,7 +16,7 @@ import java.util.List;
return this;
}
public @java.lang.SuppressWarnings("all") BuilderTypeAnnos build() {
- return new BuilderTypeAnnos(foo);
+ return new BuilderTypeAnnos(this.foo);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (("BuilderTypeAnnos.BuilderTypeAnnosBuilder(foo=" + this.foo) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderTypeAnnosWithSetterPrefix.java b/test/transform/resource/after-ecj/BuilderTypeAnnosWithSetterPrefix.java
index 6b3de70e..2ca07414 100644
--- a/test/transform/resource/after-ecj/BuilderTypeAnnosWithSetterPrefix.java
+++ b/test/transform/resource/after-ecj/BuilderTypeAnnosWithSetterPrefix.java
@@ -16,7 +16,7 @@ import java.util.List;
return this;
}
public @java.lang.SuppressWarnings("all") BuilderTypeAnnosWithSetterPrefix build() {
- return new BuilderTypeAnnosWithSetterPrefix(foo);
+ return new BuilderTypeAnnosWithSetterPrefix(this.foo);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (("BuilderTypeAnnosWithSetterPrefix.BuilderTypeAnnosWithSetterPrefixBuilder(foo=" + this.foo) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderWithAccessors.java b/test/transform/resource/after-ecj/BuilderWithAccessors.java
index a5e00964..7b666077 100644
--- a/test/transform/resource/after-ecj/BuilderWithAccessors.java
+++ b/test/transform/resource/after-ecj/BuilderWithAccessors.java
@@ -24,7 +24,7 @@
return this;
}
public @java.lang.SuppressWarnings("all") BuilderWithAccessors build() {
- return new BuilderWithAccessors(plower, upper, foo, _bar);
+ return new BuilderWithAccessors(this.plower, this.upper, this.foo, this._bar);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((((((("BuilderWithAccessors.BuilderWithAccessorsBuilder(plower=" + this.plower) + ", upper=") + this.upper) + ", foo=") + this.foo) + ", _bar=") + this._bar) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderWithBadNames.java b/test/transform/resource/after-ecj/BuilderWithBadNames.java
index 301f035f..9285021d 100644
--- a/test/transform/resource/after-ecj/BuilderWithBadNames.java
+++ b/test/transform/resource/after-ecj/BuilderWithBadNames.java
@@ -14,7 +14,7 @@ public @lombok.Builder class BuilderWithBadNames {
return this;
}
public @java.lang.SuppressWarnings("all") BuilderWithBadNames build() {
- return new BuilderWithBadNames(build, toString);
+ return new BuilderWithBadNames(this.build, this.toString);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((("BuilderWithBadNames.BuilderWithBadNamesBuilder(build=" + this.build) + ", toString=") + this.toString) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderWithDeprecated.java b/test/transform/resource/after-ecj/BuilderWithDeprecated.java
index 0bcdee42..24d35df1 100644
--- a/test/transform/resource/after-ecj/BuilderWithDeprecated.java
+++ b/test/transform/resource/after-ecj/BuilderWithDeprecated.java
@@ -64,7 +64,7 @@ public @Builder class BuilderWithDeprecated {
strings = java.util.Collections.unmodifiableList(new java.util.ArrayList<String>(this.strings));
}
com.google.common.collect.ImmutableList<Integer> numbers = ((this.numbers == null) ? com.google.common.collect.ImmutableList.<Integer>of() : this.numbers.build());
- return new BuilderWithDeprecated(dep1, dep2, strings, numbers);
+ return new BuilderWithDeprecated(this.dep1, this.dep2, strings, numbers);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((((((("BuilderWithDeprecated.BuilderWithDeprecatedBuilder(dep1=" + this.dep1) + ", dep2=") + this.dep2) + ", strings=") + this.strings) + ", numbers=") + this.numbers) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderWithExistingBuilderClass.java b/test/transform/resource/after-ecj/BuilderWithExistingBuilderClass.java
index f8f9ae6b..ea7171f0 100644
--- a/test/transform/resource/after-ecj/BuilderWithExistingBuilderClass.java
+++ b/test/transform/resource/after-ecj/BuilderWithExistingBuilderClass.java
@@ -18,7 +18,7 @@ class BuilderWithExistingBuilderClass<T, K extends Number> {
return this;
}
public @java.lang.SuppressWarnings("all") BuilderWithExistingBuilderClass<String, Z> build() {
- return BuilderWithExistingBuilderClass.<Z>staticMethod(arg1, arg2, arg3);
+ return BuilderWithExistingBuilderClass.<Z>staticMethod(this.arg1, this.arg2, this.arg3);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((((("BuilderWithExistingBuilderClass.BuilderWithExistingBuilderClassBuilder(arg1=" + this.arg1) + ", arg2=") + this.arg2) + ", arg3=") + this.arg3) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderWithExistingBuilderClassWithSetterPrefix.java b/test/transform/resource/after-ecj/BuilderWithExistingBuilderClassWithSetterPrefix.java
index a43841b8..4b8a5ff4 100644
--- a/test/transform/resource/after-ecj/BuilderWithExistingBuilderClassWithSetterPrefix.java
+++ b/test/transform/resource/after-ecj/BuilderWithExistingBuilderClassWithSetterPrefix.java
@@ -18,7 +18,7 @@ class BuilderWithExistingBuilderClassWithSetterPrefix<T, K extends Number> {
return this;
}
public @java.lang.SuppressWarnings("all") BuilderWithExistingBuilderClassWithSetterPrefix<String, Z> build() {
- return BuilderWithExistingBuilderClassWithSetterPrefix.<Z>staticMethod(arg1, arg2, arg3);
+ return BuilderWithExistingBuilderClassWithSetterPrefix.<Z>staticMethod(this.arg1, this.arg2, this.arg3);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((((("BuilderWithExistingBuilderClassWithSetterPrefix.BuilderWithExistingBuilderClassWithSetterPrefixBuilder(arg1=" + this.arg1) + ", arg2=") + this.arg2) + ", arg3=") + this.arg3) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderWithNoBuilderMethod.java b/test/transform/resource/after-ecj/BuilderWithNoBuilderMethod.java
index a7ef5dd6..8ad9b56e 100644
--- a/test/transform/resource/after-ecj/BuilderWithNoBuilderMethod.java
+++ b/test/transform/resource/after-ecj/BuilderWithNoBuilderMethod.java
@@ -10,7 +10,7 @@ import lombok.Builder;
return this;
}
public @java.lang.SuppressWarnings("all") BuilderWithNoBuilderMethod build() {
- return new BuilderWithNoBuilderMethod(a);
+ return new BuilderWithNoBuilderMethod(this.a);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (("BuilderWithNoBuilderMethod.BuilderWithNoBuilderMethodBuilder(a=" + this.a) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderWithNonNull.java b/test/transform/resource/after-ecj/BuilderWithNonNull.java
index d105b45f..49fd863b 100644
--- a/test/transform/resource/after-ecj/BuilderWithNonNull.java
+++ b/test/transform/resource/after-ecj/BuilderWithNonNull.java
@@ -13,7 +13,7 @@
return this;
}
public @java.lang.SuppressWarnings("all") BuilderWithNonNull build() {
- return new BuilderWithNonNull(id);
+ return new BuilderWithNonNull(this.id);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (("BuilderWithNonNull.BuilderWithNonNullBuilder(id=" + this.id) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderWithNonNullWithSetterPrefix.java b/test/transform/resource/after-ecj/BuilderWithNonNullWithSetterPrefix.java
index 8947f9d6..0ae45a67 100644
--- a/test/transform/resource/after-ecj/BuilderWithNonNullWithSetterPrefix.java
+++ b/test/transform/resource/after-ecj/BuilderWithNonNullWithSetterPrefix.java
@@ -13,7 +13,7 @@
return this;
}
public @java.lang.SuppressWarnings("all") BuilderWithNonNullWithSetterPrefix build() {
- return new BuilderWithNonNullWithSetterPrefix(id);
+ return new BuilderWithNonNullWithSetterPrefix(this.id);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (("BuilderWithNonNullWithSetterPrefix.BuilderWithNonNullWithSetterPrefixBuilder(id=" + this.id) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderWithRecursiveGenerics.java b/test/transform/resource/after-ecj/BuilderWithRecursiveGenerics.java
index 962e2003..a004ff98 100644
--- a/test/transform/resource/after-ecj/BuilderWithRecursiveGenerics.java
+++ b/test/transform/resource/after-ecj/BuilderWithRecursiveGenerics.java
@@ -20,7 +20,7 @@ public class BuilderWithRecursiveGenerics {
return this;
}
public @java.lang.SuppressWarnings("all") BuilderWithRecursiveGenerics.Test<Foo, Bar, Quz> build() {
- return new BuilderWithRecursiveGenerics.Test<Foo, Bar, Quz>(foo, bar);
+ return new BuilderWithRecursiveGenerics.Test<Foo, Bar, Quz>(this.foo, this.bar);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((("BuilderWithRecursiveGenerics.Test.TestBuilder(foo=" + this.foo) + ", bar=") + this.bar) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderWithToBuilder.java b/test/transform/resource/after-ecj/BuilderWithToBuilder.java
index 83938adb..131b0ca0 100644
--- a/test/transform/resource/after-ecj/BuilderWithToBuilder.java
+++ b/test/transform/resource/after-ecj/BuilderWithToBuilder.java
@@ -50,7 +50,7 @@ import lombok.Builder;
default :
bars = java.util.Collections.unmodifiableList(new java.util.ArrayList<T>(this.bars));
}
- return new BuilderWithToBuilder<T>(one, two, foo, bars);
+ return new BuilderWithToBuilder<T>(this.one, this.two, this.foo, bars);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((((((("BuilderWithToBuilder.BuilderWithToBuilderBuilder(one=" + this.one) + ", two=") + this.two) + ", foo=") + this.foo) + ", bars=") + this.bars) + ")");
@@ -101,7 +101,7 @@ import lombok.Builder;
return this;
}
public @java.lang.SuppressWarnings("all") ConstructorWithToBuilder<T> build() {
- return new ConstructorWithToBuilder<T>(mOne, baz, bars);
+ return new ConstructorWithToBuilder<T>(this.mOne, this.baz, this.bars);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((((("ConstructorWithToBuilder.ConstructorWithToBuilderBuilder(mOne=" + this.mOne) + ", baz=") + this.baz) + ", bars=") + this.bars) + ")");
diff --git a/test/transform/resource/after-ecj/BuilderWithTolerate.java b/test/transform/resource/after-ecj/BuilderWithTolerate.java
index 3878ba27..79de7869 100644
--- a/test/transform/resource/after-ecj/BuilderWithTolerate.java
+++ b/test/transform/resource/after-ecj/BuilderWithTolerate.java
@@ -14,7 +14,7 @@ public @Builder class BuilderWithTolerate {
return this;
}
public @java.lang.SuppressWarnings("all") BuilderWithTolerate build() {
- return new BuilderWithTolerate(value);
+ return new BuilderWithTolerate(this.value);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (("BuilderWithTolerate.BuilderWithTolerateBuilder(value=" + this.value) + ")");
diff --git a/test/transform/resource/after-ecj/CheckerFrameworkBuilder.java b/test/transform/resource/after-ecj/CheckerFrameworkBuilder.java
index afe4bb0e..d2163ef5 100644
--- a/test/transform/resource/after-ecj/CheckerFrameworkBuilder.java
+++ b/test/transform/resource/after-ecj/CheckerFrameworkBuilder.java
@@ -53,7 +53,10 @@ import lombok.Singular;
default :
names = java.util.Collections.unmodifiableList(new java.util.ArrayList<String>(this.names));
}
- return new CheckerFrameworkBuilder((x$set ? x$value : CheckerFrameworkBuilder.$default$x()), y, z, names);
+ int x$value = this.x$value;
+ if ((! this.x$set))
+ x$value = CheckerFrameworkBuilder.$default$x();
+ return new CheckerFrameworkBuilder(x$value, this.y, this.z, names);
}
public @java.lang.Override @org.checkerframework.dataflow.qual.SideEffectFree @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((((((("CheckerFrameworkBuilder.CheckerFrameworkBuilderBuilder(x$value=" + this.x$value) + ", y=") + this.y) + ", z=") + this.z) + ", names=") + this.names) + ")");
diff --git a/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults.java b/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults.java
index 94d06d93..ba4ee605 100644
--- a/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults.java
+++ b/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults.java
@@ -20,7 +20,10 @@ final @NoArgsConstructor(force = true) @AllArgsConstructor @Builder @Value class
return this;
}
public @java.lang.SuppressWarnings("all") ConstructorsWithBuilderDefaults build() {
- return new ConstructorsWithBuilderDefaults((x$set ? x$value : ConstructorsWithBuilderDefaults.$default$x()), y);
+ int x$value = this.x$value;
+ if ((! this.x$set))
+ x$value = ConstructorsWithBuilderDefaults.$default$x();
+ return new ConstructorsWithBuilderDefaults(x$value, this.y);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((("ConstructorsWithBuilderDefaults.ConstructorsWithBuilderDefaultsBuilder(x$value=" + this.x$value) + ", y=") + this.y) + ")");
diff --git a/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java b/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java
index b8040d02..4355ee5c 100644
--- a/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java
+++ b/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java
@@ -26,7 +26,13 @@ final @Builder @Value class ConstructorsWithBuilderDefaults<T> {
return this;
}
public @java.lang.SuppressWarnings("all") ConstructorsWithBuilderDefaults<T> build() {
- return new ConstructorsWithBuilderDefaults<T>((z$set ? z$value : ConstructorsWithBuilderDefaults.<T>$default$z()), (x$set ? x$value : ConstructorsWithBuilderDefaults.<T>$default$x()), q);
+ java.util.List<T> z$value = this.z$value;
+ if ((! this.z$set))
+ z$value = ConstructorsWithBuilderDefaults.<T>$default$z();
+ T x$value = this.x$value;
+ if ((! this.x$set))
+ x$value = ConstructorsWithBuilderDefaults.<T>$default$x();
+ return new ConstructorsWithBuilderDefaults<T>(z$value, x$value, this.q);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (((((("ConstructorsWithBuilderDefaults.ConstructorsWithBuilderDefaultsBuilder(z$value=" + this.z$value) + ", x$value=") + this.x$value) + ", q=") + this.q) + ")");
diff --git a/test/transform/resource/after-ecj/JacksonJsonProperty.java b/test/transform/resource/after-ecj/JacksonJsonProperty.java
index 83bb4807..008f0256 100644
--- a/test/transform/resource/after-ecj/JacksonJsonProperty.java
+++ b/test/transform/resource/after-ecj/JacksonJsonProperty.java
@@ -14,7 +14,7 @@ public @Builder class JacksonJsonProperty {
return this;
}
public @java.lang.SuppressWarnings("all") JacksonJsonProperty build() {
- return new JacksonJsonProperty(kebabCaseProp);
+ return new JacksonJsonProperty(this.kebabCaseProp);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
return (("JacksonJsonProperty.JacksonJsonPropertyBuilder(kebabCaseProp=" + this.kebabCaseProp) + ")");