aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r--test/transform/resource/after-delombok/Accessors.java16
-rw-r--r--test/transform/resource/after-delombok/AccessorsConfiguration.java4
-rw-r--r--test/transform/resource/after-delombok/BuilderChainAndFluent.java9
-rw-r--r--test/transform/resource/after-delombok/BuilderComplex.java13
-rw-r--r--test/transform/resource/after-delombok/BuilderDefaults.java29
-rw-r--r--test/transform/resource/after-delombok/BuilderDefaultsGenerics.java79
-rw-r--r--test/transform/resource/after-delombok/BuilderDefaultsWarnings.java20
-rw-r--r--test/transform/resource/after-delombok/BuilderGenericMethod.java40
-rw-r--r--test/transform/resource/after-delombok/BuilderInstanceMethod.java13
-rw-r--r--test/transform/resource/after-delombok/BuilderSimple.java11
-rw-r--r--test/transform/resource/after-delombok/BuilderSingularGuavaListsSets.java27
-rw-r--r--test/transform/resource/after-delombok/BuilderSingularGuavaMaps.java19
-rw-r--r--test/transform/resource/after-delombok/BuilderSingularLists.java19
-rw-r--r--test/transform/resource/after-delombok/BuilderSingularMaps.java1
-rw-r--r--test/transform/resource/after-delombok/BuilderSingularNoAuto.java19
-rw-r--r--test/transform/resource/after-delombok/BuilderSingularRedirectToGuava.java19
-rw-r--r--test/transform/resource/after-delombok/BuilderSingularSets.java23
-rw-r--r--test/transform/resource/after-delombok/BuilderSingularWithPrefixes.java11
-rw-r--r--test/transform/resource/after-delombok/BuilderValueData.java21
-rw-r--r--test/transform/resource/after-delombok/BuilderWithAccessors.java15
-rw-r--r--test/transform/resource/after-delombok/BuilderWithDeprecated.java19
-rw-r--r--test/transform/resource/after-delombok/BuilderWithExistingBuilderClass.java10
-rw-r--r--test/transform/resource/after-delombok/BuilderWithRecursiveGenerics.java16
-rw-r--r--test/transform/resource/after-delombok/BuilderWithToBuilder.java40
-rw-r--r--test/transform/resource/after-delombok/BuilderWithTolerate.java8
-rw-r--r--test/transform/resource/after-delombok/ClassNamedAfterGetter.java1
-rw-r--r--test/transform/resource/after-delombok/CommentsInterspersed.java1
-rw-r--r--test/transform/resource/after-delombok/ConflictingStaticConstructorNames.java5
-rw-r--r--test/transform/resource/after-delombok/Constructors.java21
-rw-r--r--test/transform/resource/after-delombok/ConstructorsConfiguration.java1
-rw-r--r--test/transform/resource/after-delombok/ConstructorsWithAccessors.java33
-rw-r--r--test/transform/resource/after-delombok/DataConfiguration.java6
-rw-r--r--test/transform/resource/after-delombok/DataExtended.java7
-rw-r--r--test/transform/resource/after-delombok/DataIgnore.java7
-rw-r--r--test/transform/resource/after-delombok/DataOnEnum.java4
-rw-r--r--test/transform/resource/after-delombok/DataOnLocalClass.java21
-rw-r--r--test/transform/resource/after-delombok/DataPlain.java44
-rw-r--r--test/transform/resource/after-delombok/DataWithGetter.java11
-rw-r--r--test/transform/resource/after-delombok/DataWithGetterNone.java8
-rw-r--r--test/transform/resource/after-delombok/DelegateOnGetter.java3
-rw-r--r--test/transform/resource/after-delombok/DelegateOnGetterNone.java2
-rw-r--r--test/transform/resource/after-delombok/DelegateOnMethods.java1
-rw-r--r--test/transform/resource/after-delombok/DelegateTypesAndExcludes.java2
-rw-r--r--test/transform/resource/after-delombok/DelegateWithDeprecated.java3
-rw-r--r--test/transform/resource/after-delombok/DelegateWithVarargs.java4
-rw-r--r--test/transform/resource/after-delombok/EncodingUsAscii.java1
-rw-r--r--test/transform/resource/after-delombok/EncodingUtf8.java1
-rw-r--r--test/transform/resource/after-delombok/EqualsAndHashCode.java15
-rw-r--r--test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys1.java6
-rw-r--r--test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java12
-rw-r--r--test/transform/resource/after-delombok/EqualsAndHashCodeNestedShadow.java6
-rw-r--r--test/transform/resource/after-delombok/EqualsAndHashCodeOfAndExclude.java (renamed from test/transform/resource/after-delombok/EqualsAndHashcodeOfExclude.java)4
-rw-r--r--test/transform/resource/after-delombok/EqualsAndHashCodeWithExistingMethods.java5
-rw-r--r--test/transform/resource/after-delombok/EqualsAndHashCodeWithOnParam.java3
-rw-r--r--test/transform/resource/after-delombok/FieldDefaultsViaConfigAndRequiredArgsConstructor.java2
-rw-r--r--test/transform/resource/after-delombok/GenerateSuppressFBWarnings.java1
-rw-r--r--test/transform/resource/after-delombok/GeneratedJavaxOnLombokOn.java1
-rw-r--r--test/transform/resource/after-delombok/GeneratedOffJavaxOn.java1
-rw-r--r--test/transform/resource/after-delombok/GetterAccessLevel.java9
-rw-r--r--test/transform/resource/after-delombok/GetterAlreadyExists.java10
-rw-r--r--test/transform/resource/after-delombok/GetterBoolean.java4
-rw-r--r--test/transform/resource/after-delombok/GetterDeprecated.java2
-rw-r--r--test/transform/resource/after-delombok/GetterEnum.java4
-rw-r--r--test/transform/resource/after-delombok/GetterLazy.java1
-rw-r--r--test/transform/resource/after-delombok/GetterLazyBoolean.java6
-rw-r--r--test/transform/resource/after-delombok/GetterLazyEahcToString.java6
-rw-r--r--test/transform/resource/after-delombok/GetterLazyInvalid.java1
-rw-r--r--test/transform/resource/after-delombok/GetterLazyNative.java9
-rw-r--r--test/transform/resource/after-delombok/GetterLazyTransient.java2
-rw-r--r--test/transform/resource/after-delombok/GetterNone.java1
-rw-r--r--test/transform/resource/after-delombok/GetterOnClass.java8
-rw-r--r--test/transform/resource/after-delombok/GetterOnMethod.java3
-rw-r--r--test/transform/resource/after-delombok/GetterOnMethodErrors.java1
-rw-r--r--test/transform/resource/after-delombok/GetterOnMethodErrors2.java8
-rw-r--r--test/transform/resource/after-delombok/GetterOnStatic.java2
-rw-r--r--test/transform/resource/after-delombok/GetterPlain.java2
-rw-r--r--test/transform/resource/after-delombok/GetterSetterJavadoc.java15
-rw-r--r--test/transform/resource/after-delombok/GetterWithDollar.java3
-rw-r--r--test/transform/resource/after-delombok/InjectField.java6
-rw-r--r--test/transform/resource/after-delombok/InnerClass.java51
-rw-r--r--test/transform/resource/after-delombok/LoggerCommons.java3
-rw-r--r--test/transform/resource/after-delombok/LoggerConfig.java1
-rw-r--r--test/transform/resource/after-delombok/LoggerJBossLog.java4
-rw-r--r--test/transform/resource/after-delombok/LoggerJul.java3
-rw-r--r--test/transform/resource/after-delombok/LoggerLog4j.java3
-rw-r--r--test/transform/resource/after-delombok/LoggerLog4j2.java3
-rw-r--r--test/transform/resource/after-delombok/LoggerSlf4j.java4
-rw-r--r--test/transform/resource/after-delombok/LoggerSlf4jTypes.java3
-rw-r--r--test/transform/resource/after-delombok/LoggerSlf4jWithPackage.java2
-rw-r--r--test/transform/resource/after-delombok/LoggerXSlf4j.java3
-rw-r--r--test/transform/resource/after-delombok/MixGetterVal.java1
-rw-r--r--test/transform/resource/after-delombok/MultiFieldGetter.java4
-rw-r--r--test/transform/resource/after-delombok/NoArgsConstructorForce.java1
-rw-r--r--test/transform/resource/after-delombok/NonNullPlain.java8
-rw-r--r--test/transform/resource/after-delombok/NonNullWithAlternateException.java1
-rw-r--r--test/transform/resource/after-delombok/OnXJava7Style.java5
-rw-r--r--test/transform/resource/after-delombok/OnXJava8Style.java5
-rw-r--r--test/transform/resource/after-delombok/SetterAccessLevel.java5
-rw-r--r--test/transform/resource/after-delombok/SetterAlreadyExists.java2
-rw-r--r--test/transform/resource/after-delombok/SetterDeprecated.java2
-rw-r--r--test/transform/resource/after-delombok/SetterOnClass.java8
-rw-r--r--test/transform/resource/after-delombok/SetterOnMethodOnParam.java3
-rw-r--r--test/transform/resource/after-delombok/SetterOnStatic.java2
-rw-r--r--test/transform/resource/after-delombok/SetterPlain.java2
-rw-r--r--test/transform/resource/after-delombok/SetterWithDollar.java3
-rw-r--r--test/transform/resource/after-delombok/SimpleTypeResolution.java1
-rw-r--r--test/transform/resource/after-delombok/SynchronizedPlain.java2
-rw-r--r--test/transform/resource/after-delombok/ToStringConfiguration.java5
-rw-r--r--test/transform/resource/after-delombok/ToStringInner.java4
-rw-r--r--test/transform/resource/after-delombok/ToStringPlain.java2
-rw-r--r--test/transform/resource/after-delombok/Tolerate.java6
-rw-r--r--test/transform/resource/after-delombok/TrickyTypeResolution.java1
-rw-r--r--test/transform/resource/after-delombok/UtilityClass.java4
-rw-r--r--test/transform/resource/after-delombok/ValueCallSuper.java9
-rw-r--r--test/transform/resource/after-delombok/ValueExperimental.java8
-rw-r--r--test/transform/resource/after-delombok/ValueExperimentalStarImport.java4
-rw-r--r--test/transform/resource/after-delombok/ValuePlain.java22
-rw-r--r--test/transform/resource/after-delombok/ValueStaticField.java4
-rw-r--r--test/transform/resource/after-delombok/WitherAccessLevel.java5
-rw-r--r--test/transform/resource/after-delombok/WitherAlreadyExists.java2
-rw-r--r--test/transform/resource/after-delombok/WitherAndAllArgsConstructor.java4
-rw-r--r--test/transform/resource/after-delombok/WitherDeprecated.java2
-rw-r--r--test/transform/resource/after-delombok/WitherOnClass.java6
-rw-r--r--test/transform/resource/after-delombok/WitherPlain.java2
-rw-r--r--test/transform/resource/after-delombok/WitherWithAbstract.java1
-rw-r--r--test/transform/resource/after-delombok/WitherWithGenerics.java3
126 files changed, 215 insertions, 861 deletions
diff --git a/test/transform/resource/after-delombok/Accessors.java b/test/transform/resource/after-delombok/Accessors.java
index 426b3863..2773a17b 100644
--- a/test/transform/resource/after-delombok/Accessors.java
+++ b/test/transform/resource/after-delombok/Accessors.java
@@ -1,12 +1,10 @@
class AccessorsFluent {
private String fieldName = "";
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String fieldName() {
return this.fieldName;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public AccessorsFluent fieldName(final String fieldName) {
this.fieldName = fieldName;
return this;
@@ -16,17 +14,14 @@ class AccessorsFluentOnClass {
private String fieldName = "";
private String otherFieldWithOverride = "";
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String fieldName() {
return this.fieldName;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getOtherFieldWithOverride() {
return this.otherFieldWithOverride;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public AccessorsFluentOnClass fieldName(final String fieldName) {
this.fieldName = fieldName;
return this;
@@ -35,7 +30,6 @@ class AccessorsFluentOnClass {
class AccessorsChain {
private boolean isRunning;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public AccessorsChain setRunning(final boolean isRunning) {
this.isRunning = isRunning;
return this;
@@ -45,7 +39,6 @@ class AccessorsPrefix {
private String fieldName;
private String fActualField;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setActualField(final String fActualField) {
this.fActualField = fActualField;
}
@@ -54,12 +47,10 @@ class AccessorsPrefix2 {
private String fieldName;
private String fActualField;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setFieldName(final String fieldName) {
this.fieldName = fieldName;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setActualField(final String fActualField) {
this.fActualField = fActualField;
}
@@ -71,13 +62,11 @@ class AccessorsPrefix3 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "AccessorsPrefix3(fName=" + this.getName() + ")";
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof AccessorsPrefix3)) return false;
@@ -89,13 +78,11 @@ class AccessorsPrefix3 {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof AccessorsPrefix3;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -107,7 +94,6 @@ class AccessorsPrefix3 {
class AccessorsFluentGenerics<T extends Number> {
private String name;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public AccessorsFluentGenerics<T> name(final String name) {
this.name = name;
return this;
@@ -116,7 +102,6 @@ class AccessorsFluentGenerics<T extends Number> {
class AccessorsFluentNoChaining {
private String name;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void name(final String name) {
this.name = name;
}
@@ -124,7 +109,6 @@ class AccessorsFluentNoChaining {
class AccessorsFluentStatic<T extends Number> {
private static String name;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static void name(final String name) {
AccessorsFluentStatic.name = name;
}
diff --git a/test/transform/resource/after-delombok/AccessorsConfiguration.java b/test/transform/resource/after-delombok/AccessorsConfiguration.java
index 0094c55c..f6604970 100644
--- a/test/transform/resource/after-delombok/AccessorsConfiguration.java
+++ b/test/transform/resource/after-delombok/AccessorsConfiguration.java
@@ -1,12 +1,10 @@
class AccessorsConfiguration {
private String m_FieldName = "";
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String fieldName() {
return this.m_FieldName;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void fieldName(final String m_FieldName) {
this.m_FieldName = m_FieldName;
}
@@ -14,7 +12,6 @@ class AccessorsConfiguration {
class AccessorsConfiguration2 {
private String m_FieldName = "";
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setM_FieldName(final String m_FieldName) {
this.m_FieldName = m_FieldName;
}
@@ -22,7 +19,6 @@ class AccessorsConfiguration2 {
class AccessorsConfiguration3 {
private String fFieldName = "";
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public AccessorsConfiguration3 setFieldName(final String fFieldName) {
this.fFieldName = fFieldName;
return this;
diff --git a/test/transform/resource/after-delombok/BuilderChainAndFluent.java b/test/transform/resource/after-delombok/BuilderChainAndFluent.java
index 9a93ab7d..f9833be6 100644
--- a/test/transform/resource/after-delombok/BuilderChainAndFluent.java
+++ b/test/transform/resource/after-delombok/BuilderChainAndFluent.java
@@ -1,40 +1,31 @@
class BuilderChainAndFluent {
private final int yes;
- @java.beans.ConstructorProperties({"yes"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderChainAndFluent(final int yes) {
this.yes = yes;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderChainAndFluentBuilder {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private int yes;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderChainAndFluentBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setYes(final int yes) {
this.yes = yes;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderChainAndFluent build() {
return new BuilderChainAndFluent(yes);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderChainAndFluent.BuilderChainAndFluentBuilder(yes=" + this.yes + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static BuilderChainAndFluentBuilder builder() {
return new BuilderChainAndFluentBuilder();
}
diff --git a/test/transform/resource/after-delombok/BuilderComplex.java b/test/transform/resource/after-delombok/BuilderComplex.java
index 937628f9..a89d7114 100644
--- a/test/transform/resource/after-delombok/BuilderComplex.java
+++ b/test/transform/resource/after-delombok/BuilderComplex.java
@@ -3,62 +3,49 @@ class BuilderComplex {
private static <T extends Number> void testVoidWithGenerics(T number, int arg2, String arg3, BuilderComplex selfRef) {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class VoidBuilder<T extends Number> {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private T number;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private int arg2;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private String arg3;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private BuilderComplex selfRef;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
VoidBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public VoidBuilder<T> number(final T number) {
this.number = number;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public VoidBuilder<T> arg2(final int arg2) {
this.arg2 = arg2;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public VoidBuilder<T> arg3(final String arg3) {
this.arg3 = arg3;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public VoidBuilder<T> selfRef(final BuilderComplex selfRef) {
this.selfRef = selfRef;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void execute() {
BuilderComplex.<T>testVoidWithGenerics(number, arg2, arg3, selfRef);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderComplex.VoidBuilder(number=" + this.number + ", arg2=" + this.arg2 + ", arg3=" + this.arg3 + ", selfRef=" + this.selfRef + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static <T extends Number> VoidBuilder<T> builder() {
return new VoidBuilder<T>();
}
diff --git a/test/transform/resource/after-delombok/BuilderDefaults.java b/test/transform/resource/after-delombok/BuilderDefaults.java
index 475b7558..b916b725 100644
--- a/test/transform/resource/after-delombok/BuilderDefaults.java
+++ b/test/transform/resource/after-delombok/BuilderDefaults.java
@@ -3,100 +3,83 @@ public final class BuilderDefaults {
private final String name;
private final long z;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static int $default$x() {
return 10;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static long $default$z() {
return System.currentTimeMillis();
}
- @java.beans.ConstructorProperties({"x", "name", "z"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderDefaults(final int x, final String name, final long z) {
this.x = x;
this.name = name;
this.z = z;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderDefaultsBuilder {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private boolean x$set;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private int x;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private String name;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private boolean z$set;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private long z;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderDefaultsBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderDefaultsBuilder x(final int x) {
this.x = x;
x$set = true;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderDefaultsBuilder name(final String name) {
this.name = name;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderDefaultsBuilder z(final long z) {
this.z = z;
z$set = true;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderDefaults build() {
- return new BuilderDefaults(x$set ? x : BuilderDefaults.$default$x(), name, z$set ? z : BuilderDefaults.$default$z());
+ int x = this.x;
+ if (!x$set) x = BuilderDefaults.$default$x();
+ long z = this.z;
+ if (!z$set) z = BuilderDefaults.$default$z();
+ return new BuilderDefaults(x, name, z);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderDefaults.BuilderDefaultsBuilder(x=" + this.x + ", name=" + this.name + ", z=" + this.z + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static BuilderDefaultsBuilder builder() {
return new BuilderDefaultsBuilder();
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getName() {
return this.name;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public long getZ() {
return this.z;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof BuilderDefaults)) return false;
@@ -110,7 +93,6 @@ public final class BuilderDefaults {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -123,7 +105,6 @@ public final class BuilderDefaults {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderDefaults(x=" + this.getX() + ", name=" + this.getName() + ", z=" + this.getZ() + ")";
}
diff --git a/test/transform/resource/after-delombok/BuilderDefaultsGenerics.java b/test/transform/resource/after-delombok/BuilderDefaultsGenerics.java
new file mode 100644
index 00000000..b88a61be
--- /dev/null
+++ b/test/transform/resource/after-delombok/BuilderDefaultsGenerics.java
@@ -0,0 +1,79 @@
+import java.util.*;
+public class BuilderDefaultsGenerics<N extends Number, T, R extends List<T>> {
+ private java.util.concurrent.Callable<N> callable;
+ private T tee;
+ private R arrr;
+ @java.lang.SuppressWarnings("all")
+ private static <N extends Number, T, R extends List<T>> java.util.concurrent.Callable<N> $default$callable() {
+ return null;
+ }
+ @java.lang.SuppressWarnings("all")
+ private static <N extends Number, T, R extends List<T>> T $default$tee() {
+ return null;
+ }
+ @java.lang.SuppressWarnings("all")
+ private static <N extends Number, T, R extends List<T>> R $default$arrr() {
+ return null;
+ }
+ @java.lang.SuppressWarnings("all")
+ BuilderDefaultsGenerics(final java.util.concurrent.Callable<N> callable, final T tee, final R arrr) {
+ this.callable = callable;
+ this.tee = tee;
+ this.arrr = arrr;
+ }
+ @java.lang.SuppressWarnings("all")
+ public static class BuilderDefaultsGenericsBuilder<N extends Number, T, R extends List<T>> {
+ @java.lang.SuppressWarnings("all")
+ private boolean callable$set;
+ @java.lang.SuppressWarnings("all")
+ private java.util.concurrent.Callable<N> callable;
+ @java.lang.SuppressWarnings("all")
+ private boolean tee$set;
+ @java.lang.SuppressWarnings("all")
+ private T tee;
+ @java.lang.SuppressWarnings("all")
+ private boolean arrr$set;
+ @java.lang.SuppressWarnings("all")
+ private R arrr;
+ @java.lang.SuppressWarnings("all")
+ BuilderDefaultsGenericsBuilder() {
+ }
+ @java.lang.SuppressWarnings("all")
+ public BuilderDefaultsGenericsBuilder<N, T, R> callable(final java.util.concurrent.Callable<N> callable) {
+ this.callable = callable;
+ callable$set = true;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all")
+ public BuilderDefaultsGenericsBuilder<N, T, R> tee(final T tee) {
+ this.tee = tee;
+ tee$set = true;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all")
+ public BuilderDefaultsGenericsBuilder<N, T, R> arrr(final R arrr) {
+ this.arrr = arrr;
+ arrr$set = true;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all")
+ public BuilderDefaultsGenerics<N, T, R> build() {
+ java.util.concurrent.Callable<N> callable = this.callable;
+ if (!callable$set) callable = BuilderDefaultsGenerics.<N, T, R>$default$callable();
+ T tee = this.tee;
+ if (!tee$set) tee = BuilderDefaultsGenerics.<N, T, R>$default$tee();
+ R arrr = this.arrr;
+ if (!arrr$set) arrr = BuilderDefaultsGenerics.<N, T, R>$default$arrr();
+ return new BuilderDefaultsGenerics<N, T, R>(callable, tee, arrr);
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "BuilderDefaultsGenerics.BuilderDefaultsGenericsBuilder(callable=" + this.callable + ", tee=" + this.tee + ", arrr=" + this.arrr + ")";
+ }
+ }
+ @java.lang.SuppressWarnings("all")
+ public static <N extends Number, T, R extends List<T>> BuilderDefaultsGenericsBuilder<N, T, R> builder() {
+ return new BuilderDefaultsGenericsBuilder<N, T, R>();
+ }
+}
diff --git a/test/transform/resource/after-delombok/BuilderDefaultsWarnings.java b/test/transform/resource/after-delombok/BuilderDefaultsWarnings.java
index 97c94137..7e645dc1 100644
--- a/test/transform/resource/after-delombok/BuilderDefaultsWarnings.java
+++ b/test/transform/resource/after-delombok/BuilderDefaultsWarnings.java
@@ -3,64 +3,51 @@ public class BuilderDefaultsWarnings {
final int y = 5;
int z;
java.util.List<String> items;
- @java.beans.ConstructorProperties({"x", "z", "items"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderDefaultsWarnings(final long x, final int z, final java.util.List<String> items) {
this.x = x;
this.z = z;
this.items = items;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderDefaultsWarningsBuilder {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private long x;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private int z;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private java.util.ArrayList<String> items;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderDefaultsWarningsBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderDefaultsWarningsBuilder x(final long x) {
this.x = x;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderDefaultsWarningsBuilder z(final int z) {
this.z = z;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderDefaultsWarningsBuilder item(final String item) {
if (this.items == null) this.items = new java.util.ArrayList<String>();
this.items.add(item);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderDefaultsWarningsBuilder items(final java.util.Collection<? extends String> items) {
if (this.items == null) this.items = new java.util.ArrayList<String>();
this.items.addAll(items);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderDefaultsWarningsBuilder clearItems() {
if (this.items != null) this.items.clear();
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderDefaultsWarnings build() {
java.util.List<String> items;
switch (this.items == null ? 0 : this.items.size()) {
@@ -77,13 +64,11 @@ public class BuilderDefaultsWarnings {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderDefaultsWarnings.BuilderDefaultsWarningsBuilder(x=" + this.x + ", z=" + this.z + ", items=" + this.items + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static BuilderDefaultsWarningsBuilder builder() {
return new BuilderDefaultsWarningsBuilder();
}
@@ -93,26 +78,21 @@ class NoBuilderButHasDefaults {
public NoBuilderButHasDefaults() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class NoBuilderButHasDefaultsBuilder {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
NoBuilderButHasDefaultsBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public NoBuilderButHasDefaults build() {
return new NoBuilderButHasDefaults();
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "NoBuilderButHasDefaults.NoBuilderButHasDefaultsBuilder()";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static NoBuilderButHasDefaultsBuilder builder() {
return new NoBuilderButHasDefaultsBuilder();
}
diff --git a/test/transform/resource/after-delombok/BuilderGenericMethod.java b/test/transform/resource/after-delombok/BuilderGenericMethod.java
new file mode 100644
index 00000000..f70ae871
--- /dev/null
+++ b/test/transform/resource/after-delombok/BuilderGenericMethod.java
@@ -0,0 +1,40 @@
+import java.util.List;
+import java.util.*;
+class BuilderGenericMethod<T> {
+ public <N extends Number> Map<N, T> foo(int a, long b) {
+ return null;
+ }
+ @java.lang.SuppressWarnings("all")
+ public class MapBuilder<N extends Number> {
+ @java.lang.SuppressWarnings("all")
+ private int a;
+ @java.lang.SuppressWarnings("all")
+ private long b;
+ @java.lang.SuppressWarnings("all")
+ MapBuilder() {
+ }
+ @java.lang.SuppressWarnings("all")
+ public MapBuilder<N> a(final int a) {
+ this.a = a;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all")
+ public MapBuilder<N> b(final long b) {
+ this.b = b;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all")
+ public Map<N, T> build() {
+ return BuilderGenericMethod.this.<N>foo(a, b);
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "BuilderGenericMethod.MapBuilder(a=" + this.a + ", b=" + this.b + ")";
+ }
+ }
+ @java.lang.SuppressWarnings("all")
+ public <N extends Number> MapBuilder<N> builder() {
+ return new MapBuilder<N>();
+ }
+}
diff --git a/test/transform/resource/after-delombok/BuilderInstanceMethod.java b/test/transform/resource/after-delombok/BuilderInstanceMethod.java
index 61e237d0..12b76a8f 100644
--- a/test/transform/resource/after-delombok/BuilderInstanceMethod.java
+++ b/test/transform/resource/after-delombok/BuilderInstanceMethod.java
@@ -4,62 +4,49 @@ class BuilderInstanceMethod<T> {
return "" + show + yes + also + $andMe;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public class StringBuilder {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private int show;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private int yes;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private List<T> also;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private int $andMe;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
StringBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public StringBuilder show(final int show) {
this.show = show;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public StringBuilder yes(final int yes) {
this.yes = yes;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public StringBuilder also(final List<T> also) {
this.also = also;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public StringBuilder $andMe(final int $andMe) {
this.$andMe = $andMe;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String build() {
return BuilderInstanceMethod.this.create(show, yes, also, $andMe);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderInstanceMethod.StringBuilder(show=" + this.show + ", yes=" + this.yes + ", also=" + this.also + ", $andMe=" + this.$andMe + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public StringBuilder builder() {
return new StringBuilder();
}
diff --git a/test/transform/resource/after-delombok/BuilderSimple.java b/test/transform/resource/after-delombok/BuilderSimple.java
index 138127b6..e3821c9a 100644
--- a/test/transform/resource/after-delombok/BuilderSimple.java
+++ b/test/transform/resource/after-delombok/BuilderSimple.java
@@ -4,52 +4,41 @@ class BuilderSimple<T> {
private final int yes;
private List<T> also;
private int $butNotMe;
- @java.beans.ConstructorProperties({"yes", "also"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderSimple(final int yes, final List<T> also) {
this.yes = yes;
this.also = also;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderSimpleBuilder<T> {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private int yes;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private List<T> also;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderSimpleBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSimpleBuilder<T> yes(final int yes) {
this.yes = yes;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSimpleBuilder<T> also(final List<T> also) {
this.also = also;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSimple<T> build() {
return new BuilderSimple<T>(yes, also);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderSimple.BuilderSimpleBuilder(yes=" + this.yes + ", also=" + this.also + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static <T> BuilderSimpleBuilder<T> builder() {
return new BuilderSimpleBuilder<T>();
}
diff --git a/test/transform/resource/after-delombok/BuilderSingularGuavaListsSets.java b/test/transform/resource/after-delombok/BuilderSingularGuavaListsSets.java
index a6c475f3..cf90e883 100644
--- a/test/transform/resource/after-delombok/BuilderSingularGuavaListsSets.java
+++ b/test/transform/resource/after-delombok/BuilderSingularGuavaListsSets.java
@@ -10,9 +10,7 @@ class BuilderSingularGuavaListsSets<T> {
private ImmutableSet rawSet;
private ImmutableSortedSet<String> passes;
private ImmutableTable<? extends Number, ? extends Number, String> users;
- @java.beans.ConstructorProperties({"cards", "frogs", "rawSet", "passes", "users"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderSingularGuavaListsSets(final ImmutableList<T> cards, final ImmutableCollection<? extends Number> frogs, final ImmutableSet rawSet, final ImmutableSortedSet<String> passes, final ImmutableTable<? extends Number, ? extends Number, String> users) {
this.cards = cards;
this.frogs = frogs;
@@ -21,129 +19,106 @@ class BuilderSingularGuavaListsSets<T> {
this.users = users;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderSingularGuavaListsSetsBuilder<T> {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private com.google.common.collect.ImmutableList.Builder<T> cards;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private com.google.common.collect.ImmutableList.Builder<Number> frogs;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private com.google.common.collect.ImmutableSet.Builder<java.lang.Object> rawSet;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private com.google.common.collect.ImmutableSortedSet.Builder<String> passes;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private com.google.common.collect.ImmutableTable.Builder<Number, Number, String> users;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderSingularGuavaListsSetsBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSetsBuilder<T> card(final T card) {
if (this.cards == null) this.cards = com.google.common.collect.ImmutableList.builder();
this.cards.add(card);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSetsBuilder<T> cards(final java.lang.Iterable<? extends T> cards) {
if (this.cards == null) this.cards = com.google.common.collect.ImmutableList.builder();
this.cards.addAll(cards);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSetsBuilder<T> clearCards() {
this.cards = null;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSetsBuilder<T> frog(final Number frog) {
if (this.frogs == null) this.frogs = com.google.common.collect.ImmutableList.builder();
this.frogs.add(frog);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSetsBuilder<T> frogs(final java.lang.Iterable<? extends Number> frogs) {
if (this.frogs == null) this.frogs = com.google.common.collect.ImmutableList.builder();
this.frogs.addAll(frogs);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSetsBuilder<T> clearFrogs() {
this.frogs = null;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSetsBuilder<T> rawSet(final java.lang.Object rawSet) {
if (this.rawSet == null) this.rawSet = com.google.common.collect.ImmutableSet.builder();
this.rawSet.add(rawSet);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSetsBuilder<T> rawSet(final java.lang.Iterable<?> rawSet) {
if (this.rawSet == null) this.rawSet = com.google.common.collect.ImmutableSet.builder();
this.rawSet.addAll(rawSet);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSetsBuilder<T> clearRawSet() {
this.rawSet = null;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSetsBuilder<T> pass(final String pass) {
if (this.passes == null) this.passes = com.google.common.collect.ImmutableSortedSet.naturalOrder();
this.passes.add(pass);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSetsBuilder<T> passes(final java.lang.Iterable<? extends String> passes) {
if (this.passes == null) this.passes = com.google.common.collect.ImmutableSortedSet.naturalOrder();
this.passes.addAll(passes);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSetsBuilder<T> clearPasses() {
this.passes = null;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSetsBuilder<T> user(final Number rowKey, final Number columnKey, final String value) {
if (this.users == null) this.users = com.google.common.collect.ImmutableTable.builder();
this.users.put(rowKey, columnKey, value);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSetsBuilder<T> users(final com.google.common.collect.Table<? extends Number, ? extends Number, ? extends String> users) {
if (this.users == null) this.users = com.google.common.collect.ImmutableTable.builder();
this.users.putAll(users);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSetsBuilder<T> clearUsers() {
this.users = null;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaListsSets<T> build() {
com.google.common.collect.ImmutableList<T> cards = this.cards == null ? com.google.common.collect.ImmutableList.<T>of() : this.cards.build();
com.google.common.collect.ImmutableCollection<Number> frogs = this.frogs == null ? com.google.common.collect.ImmutableList.<Number>of() : this.frogs.build();
@@ -154,13 +129,11 @@ class BuilderSingularGuavaListsSets<T> {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderSingularGuavaListsSets.BuilderSingularGuavaListsSetsBuilder(cards=" + this.cards + ", frogs=" + this.frogs + ", rawSet=" + this.rawSet + ", passes=" + this.passes + ", users=" + this.users + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static <T> BuilderSingularGuavaListsSetsBuilder<T> builder() {
return new BuilderSingularGuavaListsSetsBuilder<T>();
}
diff --git a/test/transform/resource/after-delombok/BuilderSingularGuavaMaps.java b/test/transform/resource/after-delombok/BuilderSingularGuavaMaps.java
index 7d7f996e..e29c7e94 100644
--- a/test/transform/resource/after-delombok/BuilderSingularGuavaMaps.java
+++ b/test/transform/resource/after-delombok/BuilderSingularGuavaMaps.java
@@ -6,92 +6,75 @@ class BuilderSingularGuavaMaps<K, V> {
private ImmutableSortedMap<Integer, ? extends V> vertices;
@SuppressWarnings("all")
private ImmutableBiMap rawMap;
- @java.beans.ConstructorProperties({"battleaxes", "vertices", "rawMap"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderSingularGuavaMaps(final ImmutableMap<K, V> battleaxes, final ImmutableSortedMap<Integer, ? extends V> vertices, final ImmutableBiMap rawMap) {
this.battleaxes = battleaxes;
this.vertices = vertices;
this.rawMap = rawMap;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderSingularGuavaMapsBuilder<K, V> {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private com.google.common.collect.ImmutableMap.Builder<K, V> battleaxes;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private com.google.common.collect.ImmutableSortedMap.Builder<Integer, V> vertices;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private com.google.common.collect.ImmutableBiMap.Builder<java.lang.Object, java.lang.Object> rawMap;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderSingularGuavaMapsBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaMapsBuilder<K, V> battleaxe(final K key, final V value) {
if (this.battleaxes == null) this.battleaxes = com.google.common.collect.ImmutableMap.builder();
this.battleaxes.put(key, value);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaMapsBuilder<K, V> battleaxes(final java.util.Map<? extends K, ? extends V> battleaxes) {
if (this.battleaxes == null) this.battleaxes = com.google.common.collect.ImmutableMap.builder();
this.battleaxes.putAll(battleaxes);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaMapsBuilder<K, V> clearBattleaxes() {
this.battleaxes = null;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaMapsBuilder<K, V> vertex(final Integer key, final V value) {
if (this.vertices == null) this.vertices = com.google.common.collect.ImmutableSortedMap.naturalOrder();
this.vertices.put(key, value);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaMapsBuilder<K, V> vertices(final java.util.Map<? extends Integer, ? extends V> vertices) {
if (this.vertices == null) this.vertices = com.google.common.collect.ImmutableSortedMap.naturalOrder();
this.vertices.putAll(vertices);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaMapsBuilder<K, V> clearVertices() {
this.vertices = null;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaMapsBuilder<K, V> rawMap(final java.lang.Object key, final java.lang.Object value) {
if (this.rawMap == null) this.rawMap = com.google.common.collect.ImmutableBiMap.builder();
this.rawMap.put(key, value);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaMapsBuilder<K, V> rawMap(final java.util.Map<?, ?> rawMap) {
if (this.rawMap == null) this.rawMap = com.google.common.collect.ImmutableBiMap.builder();
this.rawMap.putAll(rawMap);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaMapsBuilder<K, V> clearRawMap() {
this.rawMap = null;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularGuavaMaps<K, V> build() {
com.google.common.collect.ImmutableMap<K, V> battleaxes = this.battleaxes == null ? com.google.common.collect.ImmutableMap.<K, V>of() : this.battleaxes.build();
com.google.common.collect.ImmutableSortedMap<Integer, V> vertices = this.vertices == null ? com.google.common.collect.ImmutableSortedMap.<Integer, V>of() : this.vertices.build();
@@ -100,13 +83,11 @@ class BuilderSingularGuavaMaps<K, V> {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderSingularGuavaMaps.BuilderSingularGuavaMapsBuilder(battleaxes=" + this.battleaxes + ", vertices=" + this.vertices + ", rawMap=" + this.rawMap + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static <K, V> BuilderSingularGuavaMapsBuilder<K, V> builder() {
return new BuilderSingularGuavaMapsBuilder<K, V>();
}
diff --git a/test/transform/resource/after-delombok/BuilderSingularLists.java b/test/transform/resource/after-delombok/BuilderSingularLists.java
index 6df4d2b9..a0be0c12 100644
--- a/test/transform/resource/after-delombok/BuilderSingularLists.java
+++ b/test/transform/resource/after-delombok/BuilderSingularLists.java
@@ -5,92 +5,75 @@ class BuilderSingularLists<T> {
private Collection<? extends Number> scarves;
@SuppressWarnings("all")
private List rawList;
- @java.beans.ConstructorProperties({"children", "scarves", "rawList"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderSingularLists(final List<T> children, final Collection<? extends Number> scarves, final List rawList) {
this.children = children;
this.scarves = scarves;
this.rawList = rawList;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderSingularListsBuilder<T> {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private java.util.ArrayList<T> children;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private java.util.ArrayList<Number> scarves;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private java.util.ArrayList<java.lang.Object> rawList;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderSingularListsBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularListsBuilder<T> child(final T child) {
if (this.children == null) this.children = new java.util.ArrayList<T>();
this.children.add(child);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularListsBuilder<T> children(final java.util.Collection<? extends T> children) {
if (this.children == null) this.children = new java.util.ArrayList<T>();
this.children.addAll(children);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularListsBuilder<T> clearChildren() {
if (this.children != null) this.children.clear();
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularListsBuilder<T> scarf(final Number scarf) {
if (this.scarves == null) this.scarves = new java.util.ArrayList<Number>();
this.scarves.add(scarf);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularListsBuilder<T> scarves(final java.util.Collection<? extends Number> scarves) {
if (this.scarves == null) this.scarves = new java.util.ArrayList<Number>();
this.scarves.addAll(scarves);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularListsBuilder<T> clearScarves() {
if (this.scarves != null) this.scarves.clear();
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularListsBuilder<T> rawList(final java.lang.Object rawList) {
if (this.rawList == null) this.rawList = new java.util.ArrayList<java.lang.Object>();
this.rawList.add(rawList);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularListsBuilder<T> rawList(final java.util.Collection<?> rawList) {
if (this.rawList == null) this.rawList = new java.util.ArrayList<java.lang.Object>();
this.rawList.addAll(rawList);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularListsBuilder<T> clearRawList() {
if (this.rawList != null) this.rawList.clear();
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularLists<T> build() {
java.util.List<T> children;
switch (this.children == null ? 0 : this.children.size()) {
@@ -129,13 +112,11 @@ class BuilderSingularLists<T> {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderSingularLists.BuilderSingularListsBuilder(children=" + this.children + ", scarves=" + this.scarves + ", rawList=" + this.rawList + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static <T> BuilderSingularListsBuilder<T> builder() {
return new BuilderSingularListsBuilder<T>();
}
diff --git a/test/transform/resource/after-delombok/BuilderSingularMaps.java b/test/transform/resource/after-delombok/BuilderSingularMaps.java
index 90e97d8f..6520568b 100644
--- a/test/transform/resource/after-delombok/BuilderSingularMaps.java
+++ b/test/transform/resource/after-delombok/BuilderSingularMaps.java
@@ -6,7 +6,6 @@ class BuilderSingularMaps<K, V> {
@SuppressWarnings("all")
private Map rawMap;
private Map<String, V> stringMap;
- @java.beans.ConstructorProperties({"women", "men", "rawMap", "stringMap"})
@SuppressWarnings("all")
BuilderSingularMaps(Map<K, V> women, SortedMap<K, ? extends Number> men, Map rawMap, Map<String, V> stringMap) {
this.women = women;
diff --git a/test/transform/resource/after-delombok/BuilderSingularNoAuto.java b/test/transform/resource/after-delombok/BuilderSingularNoAuto.java
index 973f024a..189408da 100644
--- a/test/transform/resource/after-delombok/BuilderSingularNoAuto.java
+++ b/test/transform/resource/after-delombok/BuilderSingularNoAuto.java
@@ -3,92 +3,75 @@ class BuilderSingularNoAuto {
private List<String> things;
private List<String> widgets;
private List<String> items;
- @java.beans.ConstructorProperties({"things", "widgets", "items"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderSingularNoAuto(final List<String> things, final List<String> widgets, final List<String> items) {
this.things = things;
this.widgets = widgets;
this.items = items;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderSingularNoAutoBuilder {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private java.util.ArrayList<String> things;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private java.util.ArrayList<String> widgets;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private java.util.ArrayList<String> items;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderSingularNoAutoBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularNoAutoBuilder things(final String things) {
if (this.things == null) this.things = new java.util.ArrayList<String>();
this.things.add(things);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularNoAutoBuilder things(final java.util.Collection<? extends String> things) {
if (this.things == null) this.things = new java.util.ArrayList<String>();
this.things.addAll(things);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularNoAutoBuilder clearThings() {
if (this.things != null) this.things.clear();
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularNoAutoBuilder widget(final String widget) {
if (this.widgets == null) this.widgets = new java.util.ArrayList<String>();
this.widgets.add(widget);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularNoAutoBuilder widgets(final java.util.Collection<? extends String> widgets) {
if (this.widgets == null) this.widgets = new java.util.ArrayList<String>();
this.widgets.addAll(widgets);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularNoAutoBuilder clearWidgets() {
if (this.widgets != null) this.widgets.clear();
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularNoAutoBuilder items(final String items) {
if (this.items == null) this.items = new java.util.ArrayList<String>();
this.items.add(items);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularNoAutoBuilder items(final java.util.Collection<? extends String> items) {
if (this.items == null) this.items = new java.util.ArrayList<String>();
this.items.addAll(items);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularNoAutoBuilder clearItems() {
if (this.items != null) this.items.clear();
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularNoAuto build() {
java.util.List<String> things;
switch (this.things == null ? 0 : this.things.size()) {
@@ -127,13 +110,11 @@ class BuilderSingularNoAuto {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderSingularNoAuto.BuilderSingularNoAutoBuilder(things=" + this.things + ", widgets=" + this.widgets + ", items=" + this.items + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static BuilderSingularNoAutoBuilder builder() {
return new BuilderSingularNoAutoBuilder();
}
diff --git a/test/transform/resource/after-delombok/BuilderSingularRedirectToGuava.java b/test/transform/resource/after-delombok/BuilderSingularRedirectToGuava.java
index d0ad06f6..938f3bbc 100644
--- a/test/transform/resource/after-delombok/BuilderSingularRedirectToGuava.java
+++ b/test/transform/resource/after-delombok/BuilderSingularRedirectToGuava.java
@@ -5,92 +5,75 @@ class BuilderSingularRedirectToGuava {
private Set<String> dangerMice;
private NavigableMap<Integer, Number> things;
private Collection<Class<?>> doohickeys;
- @java.beans.ConstructorProperties({"dangerMice", "things", "doohickeys"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderSingularRedirectToGuava(final Set<String> dangerMice, final NavigableMap<Integer, Number> things, final Collection<Class<?>> doohickeys) {
this.dangerMice = dangerMice;
this.things = things;
this.doohickeys = doohickeys;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderSingularRedirectToGuavaBuilder {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private com.google.common.collect.ImmutableSet.Builder<String> dangerMice;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private com.google.common.collect.ImmutableSortedMap.Builder<Integer, Number> things;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private com.google.common.collect.ImmutableList.Builder<Class<?>> doohickeys;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderSingularRedirectToGuavaBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularRedirectToGuavaBuilder dangerMouse(final String dangerMouse) {
if (this.dangerMice == null) this.dangerMice = com.google.common.collect.ImmutableSet.builder();
this.dangerMice.add(dangerMouse);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularRedirectToGuavaBuilder dangerMice(final java.lang.Iterable<? extends String> dangerMice) {
if (this.dangerMice == null) this.dangerMice = com.google.common.collect.ImmutableSet.builder();
this.dangerMice.addAll(dangerMice);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularRedirectToGuavaBuilder clearDangerMice() {
this.dangerMice = null;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularRedirectToGuavaBuilder thing(final Integer key, final Number value) {
if (this.things == null) this.things = com.google.common.collect.ImmutableSortedMap.naturalOrder();
this.things.put(key, value);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularRedirectToGuavaBuilder things(final java.util.Map<? extends Integer, ? extends Number> things) {
if (this.things == null) this.things = com.google.common.collect.ImmutableSortedMap.naturalOrder();
this.things.putAll(things);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularRedirectToGuavaBuilder clearThings() {
this.things = null;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularRedirectToGuavaBuilder doohickey(final Class<?> doohickey) {
if (this.doohickeys == null) this.doohickeys = com.google.common.collect.ImmutableList.builder();
this.doohickeys.add(doohickey);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularRedirectToGuavaBuilder doohickeys(final java.lang.Iterable<? extends Class<?>> doohickeys) {
if (this.doohickeys == null) this.doohickeys = com.google.common.collect.ImmutableList.builder();
this.doohickeys.addAll(doohickeys);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularRedirectToGuavaBuilder clearDoohickeys() {
this.doohickeys = null;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularRedirectToGuava build() {
java.util.Set<String> dangerMice = this.dangerMice == null ? com.google.common.collect.ImmutableSet.<String>of() : this.dangerMice.build();
java.util.NavigableMap<Integer, Number> things = this.things == null ? com.google.common.collect.ImmutableSortedMap.<Integer, Number>of() : this.things.build();
@@ -99,13 +82,11 @@ class BuilderSingularRedirectToGuava {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderSingularRedirectToGuava.BuilderSingularRedirectToGuavaBuilder(dangerMice=" + this.dangerMice + ", things=" + this.things + ", doohickeys=" + this.doohickeys + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static BuilderSingularRedirectToGuavaBuilder builder() {
return new BuilderSingularRedirectToGuavaBuilder();
}
diff --git a/test/transform/resource/after-delombok/BuilderSingularSets.java b/test/transform/resource/after-delombok/BuilderSingularSets.java
index 8afdf5d0..2d75b294 100644
--- a/test/transform/resource/after-delombok/BuilderSingularSets.java
+++ b/test/transform/resource/after-delombok/BuilderSingularSets.java
@@ -6,9 +6,7 @@ class BuilderSingularSets<T> {
@SuppressWarnings("all")
private Set rawSet;
private Set<String> stringSet;
- @java.beans.ConstructorProperties({"dangerMice", "octopodes", "rawSet", "stringSet"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderSingularSets(final Set<T> dangerMice, final SortedSet<? extends Number> octopodes, final Set rawSet, final Set<String> stringSet) {
this.dangerMice = dangerMice;
this.octopodes = octopodes;
@@ -16,106 +14,87 @@ class BuilderSingularSets<T> {
this.stringSet = stringSet;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderSingularSetsBuilder<T> {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private java.util.ArrayList<T> dangerMice;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private java.util.ArrayList<Number> octopodes;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private java.util.ArrayList<java.lang.Object> rawSet;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private java.util.ArrayList<String> stringSet;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderSingularSetsBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> dangerMouse(final T dangerMouse) {
if (this.dangerMice == null) this.dangerMice = new java.util.ArrayList<T>();
this.dangerMice.add(dangerMouse);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> dangerMice(final java.util.Collection<? extends T> dangerMice) {
if (this.dangerMice == null) this.dangerMice = new java.util.ArrayList<T>();
this.dangerMice.addAll(dangerMice);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> clearDangerMice() {
if (this.dangerMice != null) this.dangerMice.clear();
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> octopus(final Number octopus) {
if (this.octopodes == null) this.octopodes = new java.util.ArrayList<Number>();
this.octopodes.add(octopus);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> octopodes(final java.util.Collection<? extends Number> octopodes) {
if (this.octopodes == null) this.octopodes = new java.util.ArrayList<Number>();
this.octopodes.addAll(octopodes);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> clearOctopodes() {
if (this.octopodes != null) this.octopodes.clear();
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> rawSet(final java.lang.Object rawSet) {
if (this.rawSet == null) this.rawSet = new java.util.ArrayList<java.lang.Object>();
this.rawSet.add(rawSet);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> rawSet(final java.util.Collection<?> rawSet) {
if (this.rawSet == null) this.rawSet = new java.util.ArrayList<java.lang.Object>();
this.rawSet.addAll(rawSet);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> clearRawSet() {
if (this.rawSet != null) this.rawSet.clear();
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> stringSet(final String stringSet) {
if (this.stringSet == null) this.stringSet = new java.util.ArrayList<String>();
this.stringSet.add(stringSet);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> stringSet(final java.util.Collection<? extends String> stringSet) {
if (this.stringSet == null) this.stringSet = new java.util.ArrayList<String>();
this.stringSet.addAll(stringSet);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularSetsBuilder<T> clearStringSet() {
if (this.stringSet != null) this.stringSet.clear();
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularSets<T> build() {
java.util.Set<T> dangerMice;
switch (this.dangerMice == null ? 0 : this.dangerMice.size()) {
@@ -163,13 +142,11 @@ class BuilderSingularSets<T> {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderSingularSets.BuilderSingularSetsBuilder(dangerMice=" + this.dangerMice + ", octopodes=" + this.octopodes + ", rawSet=" + this.rawSet + ", stringSet=" + this.stringSet + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static <T> BuilderSingularSetsBuilder<T> builder() {
return new BuilderSingularSetsBuilder<T>();
}
diff --git a/test/transform/resource/after-delombok/BuilderSingularWithPrefixes.java b/test/transform/resource/after-delombok/BuilderSingularWithPrefixes.java
index 4eee4fc2..e103d6dd 100644
--- a/test/transform/resource/after-delombok/BuilderSingularWithPrefixes.java
+++ b/test/transform/resource/after-delombok/BuilderSingularWithPrefixes.java
@@ -1,43 +1,34 @@
class BuilderSingularWithPrefixes {
private java.util.List<String> _elems;
- @java.beans.ConstructorProperties({"elems"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderSingularWithPrefixes(final java.util.List<String> elems) {
this._elems = elems;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderSingularWithPrefixesBuilder {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private java.util.ArrayList<String> elems;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderSingularWithPrefixesBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularWithPrefixesBuilder elem(final String elem) {
if (this.elems == null) this.elems = new java.util.ArrayList<String>();
this.elems.add(elem);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularWithPrefixesBuilder elems(final java.util.Collection<? extends String> elems) {
if (this.elems == null) this.elems = new java.util.ArrayList<String>();
this.elems.addAll(elems);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularWithPrefixesBuilder clearElems() {
if (this.elems != null) this.elems.clear();
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderSingularWithPrefixes build() {
java.util.List<String> elems;
switch (this.elems == null ? 0 : this.elems.size()) {
@@ -54,13 +45,11 @@ class BuilderSingularWithPrefixes {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderSingularWithPrefixes.BuilderSingularWithPrefixesBuilder(elems=" + this.elems + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static BuilderSingularWithPrefixesBuilder builder() {
return new BuilderSingularWithPrefixesBuilder();
}
diff --git a/test/transform/resource/after-delombok/BuilderValueData.java b/test/transform/resource/after-delombok/BuilderValueData.java
index d08c6149..e1c107da 100644
--- a/test/transform/resource/after-delombok/BuilderValueData.java
+++ b/test/transform/resource/after-delombok/BuilderValueData.java
@@ -2,41 +2,33 @@ import java.util.List;
final class BuilderAndValue {
private final int zero = 0;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderAndValue() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderAndValueBuilder {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderAndValueBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderAndValue build() {
return new BuilderAndValue();
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderAndValue.BuilderAndValueBuilder()";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static BuilderAndValueBuilder builder() {
return new BuilderAndValueBuilder();
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getZero() {
return this.zero;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof BuilderAndValue)) return false;
@@ -46,7 +38,6 @@ final class BuilderAndValue {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -55,7 +46,6 @@ final class BuilderAndValue {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderAndValue(zero=" + this.getZero() + ")";
}
@@ -64,41 +54,33 @@ final class BuilderAndValue {
class BuilderAndData {
private final int zero = 0;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderAndData() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderAndDataBuilder {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderAndDataBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderAndData build() {
return new BuilderAndData();
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderAndData.BuilderAndDataBuilder()";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static BuilderAndDataBuilder builder() {
return new BuilderAndDataBuilder();
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getZero() {
return this.zero;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof BuilderAndData)) return false;
@@ -108,13 +90,11 @@ class BuilderAndData {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof BuilderAndData;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -123,7 +103,6 @@ class BuilderAndData {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderAndData(zero=" + this.getZero() + ")";
}
diff --git a/test/transform/resource/after-delombok/BuilderWithAccessors.java b/test/transform/resource/after-delombok/BuilderWithAccessors.java
index 1f9a1f22..e6a6da79 100644
--- a/test/transform/resource/after-delombok/BuilderWithAccessors.java
+++ b/test/transform/resource/after-delombok/BuilderWithAccessors.java
@@ -3,9 +3,7 @@ class BuilderWithAccessors {
private final int pUpper;
private int _foo;
private int __bar;
- @java.beans.ConstructorProperties({"plower", "upper", "foo", "_bar"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderWithAccessors(final int plower, final int upper, final int foo, final int _bar) {
this.plower = plower;
this.pUpper = upper;
@@ -13,62 +11,49 @@ class BuilderWithAccessors {
this.__bar = _bar;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderWithAccessorsBuilder {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private int plower;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private int upper;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private int foo;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private int _bar;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderWithAccessorsBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithAccessorsBuilder plower(final int plower) {
this.plower = plower;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithAccessorsBuilder upper(final int upper) {
this.upper = upper;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithAccessorsBuilder foo(final int foo) {
this.foo = foo;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithAccessorsBuilder _bar(final int _bar) {
this._bar = _bar;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithAccessors build() {
return new BuilderWithAccessors(plower, upper, foo, _bar);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderWithAccessors.BuilderWithAccessorsBuilder(plower=" + this.plower + ", upper=" + this.upper + ", foo=" + this.foo + ", _bar=" + this._bar + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static BuilderWithAccessorsBuilder builder() {
return new BuilderWithAccessorsBuilder();
}
diff --git a/test/transform/resource/after-delombok/BuilderWithDeprecated.java b/test/transform/resource/after-delombok/BuilderWithDeprecated.java
index 766f23a6..cd887529 100644
--- a/test/transform/resource/after-delombok/BuilderWithDeprecated.java
+++ b/test/transform/resource/after-delombok/BuilderWithDeprecated.java
@@ -10,9 +10,7 @@ public class BuilderWithDeprecated {
java.util.List<String> strings;
@Deprecated
ImmutableList<Integer> numbers;
- @java.beans.ConstructorProperties({"dep1", "dep2", "strings", "numbers"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderWithDeprecated(final String dep1, final int dep2, final java.util.List<String> strings, final ImmutableList<Integer> numbers) {
this.dep1 = dep1;
this.dep2 = dep2;
@@ -20,41 +18,32 @@ public class BuilderWithDeprecated {
this.numbers = numbers;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderWithDeprecatedBuilder {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private String dep1;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private int dep2;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private java.util.ArrayList<String> strings;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private com.google.common.collect.ImmutableList.Builder<Integer> numbers;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderWithDeprecatedBuilder() {
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecatedBuilder dep1(final String dep1) {
this.dep1 = dep1;
return this;
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecatedBuilder dep2(final int dep2) {
this.dep2 = dep2;
return this;
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecatedBuilder string(final String string) {
if (this.strings == null) this.strings = new java.util.ArrayList<String>();
this.strings.add(string);
@@ -62,7 +51,6 @@ public class BuilderWithDeprecated {
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecatedBuilder strings(final java.util.Collection<? extends String> strings) {
if (this.strings == null) this.strings = new java.util.ArrayList<String>();
this.strings.addAll(strings);
@@ -70,14 +58,12 @@ public class BuilderWithDeprecated {
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecatedBuilder clearStrings() {
if (this.strings != null) this.strings.clear();
return this;
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecatedBuilder number(final Integer number) {
if (this.numbers == null) this.numbers = com.google.common.collect.ImmutableList.builder();
this.numbers.add(number);
@@ -85,7 +71,6 @@ public class BuilderWithDeprecated {
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecatedBuilder numbers(final java.lang.Iterable<? extends Integer> numbers) {
if (this.numbers == null) this.numbers = com.google.common.collect.ImmutableList.builder();
this.numbers.addAll(numbers);
@@ -93,13 +78,11 @@ public class BuilderWithDeprecated {
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecatedBuilder clearNumbers() {
this.numbers = null;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecated build() {
java.util.List<String> strings;
switch (this.strings == null ? 0 : this.strings.size()) {
@@ -117,13 +100,11 @@ public class BuilderWithDeprecated {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderWithDeprecated.BuilderWithDeprecatedBuilder(dep1=" + this.dep1 + ", dep2=" + this.dep2 + ", strings=" + this.strings + ", numbers=" + this.numbers + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static BuilderWithDeprecatedBuilder builder() {
return new BuilderWithDeprecatedBuilder();
}
diff --git a/test/transform/resource/after-delombok/BuilderWithExistingBuilderClass.java b/test/transform/resource/after-delombok/BuilderWithExistingBuilderClass.java
index 03692529..0a5edacd 100644
--- a/test/transform/resource/after-delombok/BuilderWithExistingBuilderClass.java
+++ b/test/transform/resource/after-delombok/BuilderWithExistingBuilderClass.java
@@ -4,44 +4,36 @@ class BuilderWithExistingBuilderClass<T, K extends Number> {
}
public static class BuilderWithExistingBuilderClassBuilder<Z extends Number> {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private boolean arg2;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private String arg3;
private Z arg1;
public void arg2(boolean arg) {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderWithExistingBuilderClassBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithExistingBuilderClassBuilder<Z> arg1(final Z arg1) {
this.arg1 = arg1;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithExistingBuilderClassBuilder<Z> arg3(final String arg3) {
this.arg3 = arg3;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
- public BuilderWithExistingBuilderClass build() {
+ public BuilderWithExistingBuilderClass<String, Z> build() {
return BuilderWithExistingBuilderClass.<Z>staticMethod(arg1, arg2, arg3);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderWithExistingBuilderClass.BuilderWithExistingBuilderClassBuilder(arg1=" + this.arg1 + ", arg2=" + this.arg2 + ", arg3=" + this.arg3 + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static <Z extends Number> BuilderWithExistingBuilderClassBuilder<Z> builder() {
return new BuilderWithExistingBuilderClassBuilder<Z>();
}
diff --git a/test/transform/resource/after-delombok/BuilderWithRecursiveGenerics.java b/test/transform/resource/after-delombok/BuilderWithRecursiveGenerics.java
index 0f0efe00..7fb300e4 100644
--- a/test/transform/resource/after-delombok/BuilderWithRecursiveGenerics.java
+++ b/test/transform/resource/after-delombok/BuilderWithRecursiveGenerics.java
@@ -5,68 +5,54 @@ public class BuilderWithRecursiveGenerics {
public static final class Test<Foo, Bar extends Set<Foo>, Quz extends Inter<Bar, Quz>> {
private final Foo foo;
private final Bar bar;
- @java.beans.ConstructorProperties({"foo", "bar"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
Test(final Foo foo, final Bar bar) {
this.foo = foo;
this.bar = bar;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class TestBuilder<Foo, Bar extends Set<Foo>, Quz extends Inter<Bar, Quz>> {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private Foo foo;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private Bar bar;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
TestBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public TestBuilder<Foo, Bar, Quz> foo(final Foo foo) {
this.foo = foo;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public TestBuilder<Foo, Bar, Quz> bar(final Bar bar) {
this.bar = bar;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Test<Foo, Bar, Quz> build() {
return new Test<Foo, Bar, Quz>(foo, bar);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderWithRecursiveGenerics.Test.TestBuilder(foo=" + this.foo + ", bar=" + this.bar + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static <Foo, Bar extends Set<Foo>, Quz extends Inter<Bar, Quz>> TestBuilder<Foo, Bar, Quz> builder() {
return new TestBuilder<Foo, Bar, Quz>();
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Foo getFoo() {
return this.foo;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Bar getBar() {
return this.bar;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof BuilderWithRecursiveGenerics.Test)) return false;
@@ -81,7 +67,6 @@ public class BuilderWithRecursiveGenerics {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -93,7 +78,6 @@ public class BuilderWithRecursiveGenerics {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderWithRecursiveGenerics.Test(foo=" + this.getFoo() + ", bar=" + this.getBar() + ")";
}
diff --git a/test/transform/resource/after-delombok/BuilderWithToBuilder.java b/test/transform/resource/after-delombok/BuilderWithToBuilder.java
index e1c7a92d..46387f0f 100644
--- a/test/transform/resource/after-delombok/BuilderWithToBuilder.java
+++ b/test/transform/resource/after-delombok/BuilderWithToBuilder.java
@@ -7,9 +7,7 @@ class BuilderWithToBuilder<T> {
public static <K> K rrr(BuilderWithToBuilder<K> x) {
return x.foo;
}
- @java.beans.ConstructorProperties({"one", "two", "foo", "bars"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderWithToBuilder(final String one, final String two, final T foo, final List<T> bars) {
this.mOne = one;
this.mTwo = two;
@@ -17,64 +15,51 @@ class BuilderWithToBuilder<T> {
this.bars = bars;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderWithToBuilderBuilder<T> {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private String one;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private String two;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private T foo;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private java.util.ArrayList<T> bars;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderWithToBuilderBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithToBuilderBuilder<T> one(final String one) {
this.one = one;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithToBuilderBuilder<T> two(final String two) {
this.two = two;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithToBuilderBuilder<T> foo(final T foo) {
this.foo = foo;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithToBuilderBuilder<T> bar(final T bar) {
if (this.bars == null) this.bars = new java.util.ArrayList<T>();
this.bars.add(bar);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithToBuilderBuilder<T> bars(final java.util.Collection<? extends T> bars) {
if (this.bars == null) this.bars = new java.util.ArrayList<T>();
this.bars.addAll(bars);
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithToBuilderBuilder<T> clearBars() {
if (this.bars != null) this.bars.clear();
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithToBuilder<T> build() {
java.util.List<T> bars;
switch (this.bars == null ? 0 : this.bars.size()) {
@@ -91,18 +76,15 @@ class BuilderWithToBuilder<T> {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderWithToBuilder.BuilderWithToBuilderBuilder(one=" + this.one + ", two=" + this.two + ", foo=" + this.foo + ", bars=" + this.bars + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static <T> BuilderWithToBuilderBuilder<T> builder() {
return new BuilderWithToBuilderBuilder<T>();
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithToBuilderBuilder<T> toBuilder() {
return new BuilderWithToBuilderBuilder<T>().one(this.mOne).two(this.mTwo).foo(BuilderWithToBuilder.rrr(this)).bars(this.bars);
}
@@ -116,49 +98,39 @@ class ConstructorWithToBuilder<T> {
public ConstructorWithToBuilder(String mOne, T bar) {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class ConstructorWithToBuilderBuilder<T> {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private String mOne;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private T bar;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
ConstructorWithToBuilderBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public ConstructorWithToBuilderBuilder<T> mOne(final String mOne) {
this.mOne = mOne;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public ConstructorWithToBuilderBuilder<T> bar(final T bar) {
this.bar = bar;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public ConstructorWithToBuilder<T> build() {
return new ConstructorWithToBuilder<T>(mOne, bar);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ConstructorWithToBuilder.ConstructorWithToBuilderBuilder(mOne=" + this.mOne + ", bar=" + this.bar + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static <T> ConstructorWithToBuilderBuilder<T> builder() {
return new ConstructorWithToBuilderBuilder<T>();
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public ConstructorWithToBuilderBuilder<T> toBuilder() {
return new ConstructorWithToBuilderBuilder<T>().mOne(this.mOne).bar(this.foo);
}
@@ -174,49 +146,39 @@ class StaticWithToBuilder<T, K> {
return new StaticWithToBuilder<Z, String>();
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class StaticWithToBuilderBuilder<Z> {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private String mOne;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private Z bar;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
StaticWithToBuilderBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public StaticWithToBuilderBuilder<Z> mOne(final String mOne) {
this.mOne = mOne;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public StaticWithToBuilderBuilder<Z> bar(final Z bar) {
this.bar = bar;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
- public StaticWithToBuilder build() {
+ public StaticWithToBuilder<Z, String> build() {
return StaticWithToBuilder.<Z>test(mOne, bar);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "StaticWithToBuilder.StaticWithToBuilderBuilder(mOne=" + this.mOne + ", bar=" + this.bar + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static <Z> StaticWithToBuilderBuilder<Z> builder() {
return new StaticWithToBuilderBuilder<Z>();
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public StaticWithToBuilderBuilder<T> toBuilder() {
return new StaticWithToBuilderBuilder<T>().mOne(this.mOne).bar(this.foo);
}
diff --git a/test/transform/resource/after-delombok/BuilderWithTolerate.java b/test/transform/resource/after-delombok/BuilderWithTolerate.java
index 1992fd4b..6ec7c091 100644
--- a/test/transform/resource/after-delombok/BuilderWithTolerate.java
+++ b/test/transform/resource/after-delombok/BuilderWithTolerate.java
@@ -6,42 +6,34 @@ public class BuilderWithTolerate {
}
public static class BuilderWithTolerateBuilder {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private int value;
@Tolerate
public BuilderWithTolerateBuilder value(String s) {
return this.value(Integer.parseInt(s));
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderWithTolerateBuilder() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithTolerateBuilder value(final int value) {
this.value = value;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithTolerate build() {
return new BuilderWithTolerate(value);
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderWithTolerate.BuilderWithTolerateBuilder(value=" + this.value + ")";
}
}
- @java.beans.ConstructorProperties({"value"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderWithTolerate(final int value) {
this.value = value;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static BuilderWithTolerateBuilder builder() {
return new BuilderWithTolerateBuilder();
}
diff --git a/test/transform/resource/after-delombok/ClassNamedAfterGetter.java b/test/transform/resource/after-delombok/ClassNamedAfterGetter.java
index 793ec097..769aaf7c 100644
--- a/test/transform/resource/after-delombok/ClassNamedAfterGetter.java
+++ b/test/transform/resource/after-delombok/ClassNamedAfterGetter.java
@@ -1,7 +1,6 @@
class GetFoo {
private int foo;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getFoo() {
return this.foo;
}
diff --git a/test/transform/resource/after-delombok/CommentsInterspersed.java b/test/transform/resource/after-delombok/CommentsInterspersed.java
index a1da2c3d..833f2ce0 100644
--- a/test/transform/resource/after-delombok/CommentsInterspersed.java
+++ b/test/transform/resource/after-delombok/CommentsInterspersed.java
@@ -12,7 +12,6 @@ public class CommentsInterspersed {
javascript;
}-*/
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getTest() {
return this.test;
}
diff --git a/test/transform/resource/after-delombok/ConflictingStaticConstructorNames.java b/test/transform/resource/after-delombok/ConflictingStaticConstructorNames.java
index 22a66c95..30aefaa0 100644
--- a/test/transform/resource/after-delombok/ConflictingStaticConstructorNames.java
+++ b/test/transform/resource/after-delombok/ConflictingStaticConstructorNames.java
@@ -1,7 +1,6 @@
class ConflictingStaticConstructorNames {
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof ConflictingStaticConstructorNames)) return false;
@@ -10,25 +9,21 @@ class ConflictingStaticConstructorNames {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof ConflictingStaticConstructorNames;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
int result = 1;
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ConflictingStaticConstructorNames()";
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public ConflictingStaticConstructorNames() {
}
}
diff --git a/test/transform/resource/after-delombok/Constructors.java b/test/transform/resource/after-delombok/Constructors.java
index b8eaa678..b2e51c40 100644
--- a/test/transform/resource/after-delombok/Constructors.java
+++ b/test/transform/resource/after-delombok/Constructors.java
@@ -1,9 +1,7 @@
class RequiredArgsConstructor1 {
final int x;
String name;
- @java.beans.ConstructorProperties({"x"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public RequiredArgsConstructor1(final int x) {
this.x = x;
}
@@ -11,9 +9,7 @@ class RequiredArgsConstructor1 {
class RequiredArgsConstructorAccess {
final int x;
String name;
- @java.beans.ConstructorProperties({"x"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected RequiredArgsConstructorAccess(final int x) {
this.x = x;
}
@@ -21,14 +17,11 @@ class RequiredArgsConstructorAccess {
class RequiredArgsConstructorStaticName {
final int x;
String name;
- @java.beans.ConstructorProperties({"x"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private RequiredArgsConstructorStaticName(final int x) {
this.x = x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static RequiredArgsConstructorStaticName staticname(final int x) {
return new RequiredArgsConstructorStaticName(x);
}
@@ -36,10 +29,8 @@ class RequiredArgsConstructorStaticName {
class RequiredArgsConstructorWithAnnotations {
final int x;
String name;
- @java.beans.ConstructorProperties({"x"})
@Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public RequiredArgsConstructorWithAnnotations(final int x) {
this.x = x;
}
@@ -47,9 +38,7 @@ class RequiredArgsConstructorWithAnnotations {
class AllArgsConstructor1 {
final int x;
String name;
- @java.beans.ConstructorProperties({"x", "name"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public AllArgsConstructor1(final int x, final String name) {
this.x = x;
this.name = name;
@@ -59,21 +48,17 @@ class NoArgsConstructor1 {
int x;
String name;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public NoArgsConstructor1() {
}
}
class RequiredArgsConstructorStaticNameGenerics<T extends Number> {
final T x;
String name;
- @java.beans.ConstructorProperties({"x"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private RequiredArgsConstructorStaticNameGenerics(final T x) {
this.x = x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static <T extends Number> RequiredArgsConstructorStaticNameGenerics<T> of(final T x) {
return new RequiredArgsConstructorStaticNameGenerics<T>(x);
}
@@ -81,23 +66,18 @@ class RequiredArgsConstructorStaticNameGenerics<T extends Number> {
class RequiredArgsConstructorStaticNameGenerics2<T extends Number> {
final Class<T> x;
String name;
- @java.beans.ConstructorProperties({"x"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private RequiredArgsConstructorStaticNameGenerics2(final Class<T> x) {
this.x = x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static <T extends Number> RequiredArgsConstructorStaticNameGenerics2<T> of(final Class<T> x) {
return new RequiredArgsConstructorStaticNameGenerics2<T>(x);
}
}
class AllArgsConstructorPackageAccess {
final String x;
- @java.beans.ConstructorProperties({"x"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
AllArgsConstructorPackageAccess(final String x) {
this.x = x;
}
@@ -111,7 +91,6 @@ class NoArgsConstructor2 {
final String s;
byte z;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public NoArgsConstructor2() {
this.x = 0;
this.y = 0.0;
diff --git a/test/transform/resource/after-delombok/ConstructorsConfiguration.java b/test/transform/resource/after-delombok/ConstructorsConfiguration.java
index 40189911..47b0cc16 100644
--- a/test/transform/resource/after-delombok/ConstructorsConfiguration.java
+++ b/test/transform/resource/after-delombok/ConstructorsConfiguration.java
@@ -1,7 +1,6 @@
class ConstructorsConfiguration {
int x;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public ConstructorsConfiguration(final int x) {
this.x = x;
}
diff --git a/test/transform/resource/after-delombok/ConstructorsWithAccessors.java b/test/transform/resource/after-delombok/ConstructorsWithAccessors.java
index 43c0ea66..dd4ce12f 100644
--- a/test/transform/resource/after-delombok/ConstructorsWithAccessors.java
+++ b/test/transform/resource/after-delombok/ConstructorsWithAccessors.java
@@ -4,9 +4,7 @@ class ConstructorsWithAccessors {
int _huh;
int __huh2;
- @java.beans.ConstructorProperties({"plower", "upper", "huh", "_huh2"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public ConstructorsWithAccessors(final int plower, final int upper, final int huh, final int _huh2) {
this.plower = plower;
this.pUpper = upper;
@@ -14,3 +12,34 @@ class ConstructorsWithAccessors {
this.__huh2 = _huh2;
}
}
+
+class ConstructorsWithAccessorsNonNull {
+ @lombok.NonNull
+ Integer plower;
+ @lombok.NonNull
+ Integer pUpper;
+ @lombok.NonNull
+ Integer _huh;
+ @lombok.NonNull
+ final Integer __huh2;
+
+ @java.lang.SuppressWarnings("all")
+ public ConstructorsWithAccessorsNonNull(@lombok.NonNull final Integer plower, @lombok.NonNull final Integer upper, @lombok.NonNull final Integer huh, @lombok.NonNull final Integer _huh2) {
+ if (plower == null) {
+ throw new java.lang.NullPointerException("plower");
+ }
+ if (upper == null) {
+ throw new java.lang.NullPointerException("upper");
+ }
+ if (huh == null) {
+ throw new java.lang.NullPointerException("huh");
+ }
+ if (_huh2 == null) {
+ throw new java.lang.NullPointerException("_huh2");
+ }
+ this.plower = plower;
+ this.pUpper = upper;
+ this._huh = huh;
+ this.__huh2 = _huh2;
+ }
+}
diff --git a/test/transform/resource/after-delombok/DataConfiguration.java b/test/transform/resource/after-delombok/DataConfiguration.java
index 5057e9ed..b71e1c81 100644
--- a/test/transform/resource/after-delombok/DataConfiguration.java
+++ b/test/transform/resource/after-delombok/DataConfiguration.java
@@ -1,18 +1,15 @@
class DataConfiguration {
final int x;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public DataConfiguration(final int x) {
this.x = x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof DataConfiguration)) return false;
@@ -22,13 +19,11 @@ class DataConfiguration {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof DataConfiguration;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -37,7 +32,6 @@ class DataConfiguration {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "DataConfiguration(x=" + this.x + ")";
}
diff --git a/test/transform/resource/after-delombok/DataExtended.java b/test/transform/resource/after-delombok/DataExtended.java
index 04f0da0b..bcbf2293 100644
--- a/test/transform/resource/after-delombok/DataExtended.java
+++ b/test/transform/resource/after-delombok/DataExtended.java
@@ -1,22 +1,18 @@
class DataExtended {
int x;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public DataExtended() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setX(final int x) {
this.x = x;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof DataExtended)) return false;
@@ -26,13 +22,11 @@ class DataExtended {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof DataExtended;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -41,7 +35,6 @@ class DataExtended {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "DataExtended(x=" + this.x + ")";
}
diff --git a/test/transform/resource/after-delombok/DataIgnore.java b/test/transform/resource/after-delombok/DataIgnore.java
index dca235d3..309d8150 100644
--- a/test/transform/resource/after-delombok/DataIgnore.java
+++ b/test/transform/resource/after-delombok/DataIgnore.java
@@ -1,20 +1,16 @@
class DataIgnore {
final int x;
String $name;
- @java.beans.ConstructorProperties({"x"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public DataIgnore(final int x) {
this.x = x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof DataIgnore)) return false;
@@ -24,13 +20,11 @@ class DataIgnore {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof DataIgnore;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -39,7 +33,6 @@ class DataIgnore {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "DataIgnore(x=" + this.getX() + ")";
}
diff --git a/test/transform/resource/after-delombok/DataOnEnum.java b/test/transform/resource/after-delombok/DataOnEnum.java
index bb973717..2486646b 100644
--- a/test/transform/resource/after-delombok/DataOnEnum.java
+++ b/test/transform/resource/after-delombok/DataOnEnum.java
@@ -2,19 +2,15 @@ public enum DataOnEnum {
A("hello");
private final String someField;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getSomeField() {
return this.someField;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "DataOnEnum(someField=" + this.getSomeField() + ")";
}
- @java.beans.ConstructorProperties({"someField"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private DataOnEnum(final String someField) {
this.someField = someField;
}
diff --git a/test/transform/resource/after-delombok/DataOnLocalClass.java b/test/transform/resource/after-delombok/DataOnLocalClass.java
index 9fe16070..84817897 100644
--- a/test/transform/resource/after-delombok/DataOnLocalClass.java
+++ b/test/transform/resource/after-delombok/DataOnLocalClass.java
@@ -4,28 +4,23 @@ class DataOnLocalClass1 {
final int x;
String name;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Local(final int x) {
this.x = x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getName() {
return this.name;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setName(final String name) {
this.name = name;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Local)) return false;
@@ -38,13 +33,11 @@ class DataOnLocalClass1 {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Local;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -55,7 +48,6 @@ class DataOnLocalClass1 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "Local(x=" + this.getX() + ", name=" + this.getName() + ")";
}
@@ -70,7 +62,6 @@ class DataOnLocalClass2 {
@lombok.NonNull
String name;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public InnerLocal(@lombok.NonNull final String name) {
if (name == null) {
throw new java.lang.NullPointerException("name");
@@ -79,12 +70,10 @@ class DataOnLocalClass2 {
}
@lombok.NonNull
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getName() {
return this.name;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setName(@lombok.NonNull final String name) {
if (name == null) {
throw new java.lang.NullPointerException("name");
@@ -93,7 +82,6 @@ class DataOnLocalClass2 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Local.InnerLocal)) return false;
@@ -105,13 +93,11 @@ class DataOnLocalClass2 {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Local.InnerLocal;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -121,24 +107,20 @@ class DataOnLocalClass2 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "Local.InnerLocal(name=" + this.getName() + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Local(final int x) {
this.x = x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Local)) return false;
@@ -148,13 +130,11 @@ class DataOnLocalClass2 {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Local;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -163,7 +143,6 @@ class DataOnLocalClass2 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "Local(x=" + this.getX() + ")";
}
diff --git a/test/transform/resource/after-delombok/DataPlain.java b/test/transform/resource/after-delombok/DataPlain.java
index 6d109653..d54baef1 100644
--- a/test/transform/resource/after-delombok/DataPlain.java
+++ b/test/transform/resource/after-delombok/DataPlain.java
@@ -1,30 +1,24 @@
class Data1 {
final int x;
String name;
- @java.beans.ConstructorProperties({"x"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Data1(final int x) {
this.x = x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getName() {
return this.name;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setName(final String name) {
this.name = name;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Data1)) return false;
@@ -37,13 +31,11 @@ class Data1 {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Data1;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -54,7 +46,6 @@ class Data1 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "Data1(x=" + this.getX() + ", name=" + this.getName() + ")";
}
@@ -62,30 +53,24 @@ class Data1 {
class Data2 {
final int x;
String name;
- @java.beans.ConstructorProperties({"x"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Data2(final int x) {
this.x = x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getName() {
return this.name;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setName(final String name) {
this.name = name;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Data2)) return false;
@@ -98,13 +83,11 @@ class Data2 {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Data2;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -115,7 +98,6 @@ class Data2 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "Data2(x=" + this.getX() + ", name=" + this.getName() + ")";
}
@@ -123,30 +105,24 @@ class Data2 {
final class Data3 {
final int x;
String name;
- @java.beans.ConstructorProperties({"x"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Data3(final int x) {
this.x = x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getName() {
return this.name;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setName(final String name) {
this.name = name;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Data3)) return false;
@@ -159,7 +135,6 @@ final class Data3 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -170,7 +145,6 @@ final class Data3 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "Data3(x=" + this.getX() + ", name=" + this.getName() + ")";
}
@@ -180,24 +154,20 @@ final class Data4 extends java.util.Timer {
Data4() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setX(final int x) {
this.x = x;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "Data4(x=" + this.getX() + ")";
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Data4)) return false;
@@ -208,29 +178,24 @@ final class Data4 extends java.util.Timer {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Data4;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
- int result = 1;
- result = result * PRIME + super.hashCode();
+ int result = super.hashCode();
result = result * PRIME + this.getX();
return result;
}
}
class Data5 {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Data5() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Data5)) return false;
@@ -239,32 +204,27 @@ class Data5 {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Data5;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
int result = 1;
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "Data5()";
}
}
final class Data6 {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Data6() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Data6)) return false;
@@ -272,14 +232,12 @@ final class Data6 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
int result = 1;
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "Data6()";
}
diff --git a/test/transform/resource/after-delombok/DataWithGetter.java b/test/transform/resource/after-delombok/DataWithGetter.java
index 85e698df..b4107bb3 100644
--- a/test/transform/resource/after-delombok/DataWithGetter.java
+++ b/test/transform/resource/after-delombok/DataWithGetter.java
@@ -2,25 +2,20 @@ class DataWithGetter {
private int x;
private int y;
private final String z;
- @java.beans.ConstructorProperties({"z"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public DataWithGetter(final String z) {
this.z = z;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setX(final int x) {
this.x = x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setY(final int y) {
this.y = y;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof DataWithGetter)) return false;
@@ -34,13 +29,11 @@ class DataWithGetter {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof DataWithGetter;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -52,22 +45,18 @@ class DataWithGetter {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "DataWithGetter(x=" + this.getX() + ", y=" + this.getY() + ", z=" + this.getZ() + ")";
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getY() {
return this.y;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getZ() {
return this.z;
}
diff --git a/test/transform/resource/after-delombok/DataWithGetterNone.java b/test/transform/resource/after-delombok/DataWithGetterNone.java
index 8be06247..4467e407 100644
--- a/test/transform/resource/after-delombok/DataWithGetterNone.java
+++ b/test/transform/resource/after-delombok/DataWithGetterNone.java
@@ -2,25 +2,20 @@ class DataWithGetterNone {
private int x;
private int y;
private final String z;
- @java.beans.ConstructorProperties({"z"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public DataWithGetterNone(final String z) {
this.z = z;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setX(final int x) {
this.x = x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setY(final int y) {
this.y = y;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof DataWithGetterNone)) return false;
@@ -34,13 +29,11 @@ class DataWithGetterNone {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof DataWithGetterNone;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -52,7 +45,6 @@ class DataWithGetterNone {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "DataWithGetterNone(x=" + this.x + ", y=" + this.y + ", z=" + this.z + ")";
}
diff --git a/test/transform/resource/after-delombok/DelegateOnGetter.java b/test/transform/resource/after-delombok/DelegateOnGetter.java
index 8cb72788..f41259df 100644
--- a/test/transform/resource/after-delombok/DelegateOnGetter.java
+++ b/test/transform/resource/after-delombok/DelegateOnGetter.java
@@ -5,7 +5,6 @@ class DelegateOnGetter {
int getInt();
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Bar getBar() {
java.lang.Object value = this.bar.get();
if (value == null) {
@@ -27,12 +26,10 @@ class DelegateOnGetter {
return (Bar) (value == this.bar ? null : value);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setList(final java.util.ArrayList<java.lang.String> list) {
this.getBar().setList(list);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getInt() {
return this.getBar().getInt();
}
diff --git a/test/transform/resource/after-delombok/DelegateOnGetterNone.java b/test/transform/resource/after-delombok/DelegateOnGetterNone.java
index 49215748..1f6eb5be 100644
--- a/test/transform/resource/after-delombok/DelegateOnGetterNone.java
+++ b/test/transform/resource/after-delombok/DelegateOnGetterNone.java
@@ -5,12 +5,10 @@ class DelegateOnGetterNone {
int getInt();
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setList(final java.util.ArrayList<java.lang.String> list) {
this.bar.setList(list);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getInt() {
return this.bar.getInt();
}
diff --git a/test/transform/resource/after-delombok/DelegateOnMethods.java b/test/transform/resource/after-delombok/DelegateOnMethods.java
index 8028b48a..eb94c6d2 100644
--- a/test/transform/resource/after-delombok/DelegateOnMethods.java
+++ b/test/transform/resource/after-delombok/DelegateOnMethods.java
@@ -7,7 +7,6 @@ abstract class DelegateOnMethods {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void bar(final java.util.ArrayList<java.lang.String> list) {
this.getBar().bar(list);
diff --git a/test/transform/resource/after-delombok/DelegateTypesAndExcludes.java b/test/transform/resource/after-delombok/DelegateTypesAndExcludes.java
index bc19b276..921669c7 100644
--- a/test/transform/resource/after-delombok/DelegateTypesAndExcludes.java
+++ b/test/transform/resource/after-delombok/DelegateTypesAndExcludes.java
@@ -25,7 +25,6 @@ class DelegatePlain {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void bar(final java.util.ArrayList<java.lang.String> list) {
this.bar.bar(list);
@@ -33,7 +32,6 @@ class DelegatePlain {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void foo() {
this.foo.foo();
diff --git a/test/transform/resource/after-delombok/DelegateWithDeprecated.java b/test/transform/resource/after-delombok/DelegateWithDeprecated.java
index 0bc89859..f487dc87 100644
--- a/test/transform/resource/after-delombok/DelegateWithDeprecated.java
+++ b/test/transform/resource/after-delombok/DelegateWithDeprecated.java
@@ -11,18 +11,15 @@ class DelegateWithDeprecated {
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void deprecatedAnnotation() {
this.bar.deprecatedAnnotation();
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void deprecatedComment() {
this.bar.deprecatedComment();
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void notDeprecated() {
this.bar.notDeprecated();
}
diff --git a/test/transform/resource/after-delombok/DelegateWithVarargs.java b/test/transform/resource/after-delombok/DelegateWithVarargs.java
index 1d240524..dadbb4ee 100644
--- a/test/transform/resource/after-delombok/DelegateWithVarargs.java
+++ b/test/transform/resource/after-delombok/DelegateWithVarargs.java
@@ -7,22 +7,18 @@ class DelegateWithVarargs {
void arrayVarargs(int[]... arrayVarargs);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void justOneParameter(final int... varargs) {
this.bar.justOneParameter(varargs);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void multipleParameters(final java.lang.String first, final int... varargs) {
this.bar.multipleParameters(first, varargs);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void array(final int[] array) {
this.bar.array(array);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void arrayVarargs(final int[]... arrayVarargs) {
this.bar.arrayVarargs(arrayVarargs);
}
diff --git a/test/transform/resource/after-delombok/EncodingUsAscii.java b/test/transform/resource/after-delombok/EncodingUsAscii.java
index 965d70b5..ec352056 100644
--- a/test/transform/resource/after-delombok/EncodingUsAscii.java
+++ b/test/transform/resource/after-delombok/EncodingUsAscii.java
@@ -3,7 +3,6 @@ class EncodingUsAscii {
String foo\u0e51\u0e51 = "\016\t\b ";
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "EncodingUsAscii(foo\u0e51\u0e51=" + this.foo\u0e51\u0e51 + ")";
}
diff --git a/test/transform/resource/after-delombok/EncodingUtf8.java b/test/transform/resource/after-delombok/EncodingUtf8.java
index 4cc5c89d..1c7751b5 100644
--- a/test/transform/resource/after-delombok/EncodingUtf8.java
+++ b/test/transform/resource/after-delombok/EncodingUtf8.java
@@ -2,7 +2,6 @@ class EncodingUtf8 {
String foo๑๑ = "\016\t\b ";
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "EncodingUtf8(foo๑๑=" + this.foo๑๑ + ")";
}
diff --git a/test/transform/resource/after-delombok/EqualsAndHashCode.java b/test/transform/resource/after-delombok/EqualsAndHashCode.java
index 67e07d7f..eed77b39 100644
--- a/test/transform/resource/after-delombok/EqualsAndHashCode.java
+++ b/test/transform/resource/after-delombok/EqualsAndHashCode.java
@@ -6,7 +6,6 @@ class EqualsAndHashCode {
String b;
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCode)) return false;
@@ -24,13 +23,11 @@ class EqualsAndHashCode {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof EqualsAndHashCode;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -52,7 +49,6 @@ final class EqualsAndHashCode2 {
boolean b;
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCode2)) return false;
@@ -66,7 +62,6 @@ final class EqualsAndHashCode2 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -83,7 +78,6 @@ final class EqualsAndHashCode2 {
final class EqualsAndHashCode3 extends EqualsAndHashCode {
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCode3)) return false;
@@ -92,13 +86,11 @@ final class EqualsAndHashCode3 extends EqualsAndHashCode {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof EqualsAndHashCode3;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
int result = 1;
return result;
@@ -107,7 +99,6 @@ final class EqualsAndHashCode3 extends EqualsAndHashCode {
class EqualsAndHashCode4 extends EqualsAndHashCode {
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCode4)) return false;
@@ -117,17 +108,13 @@ class EqualsAndHashCode4 extends EqualsAndHashCode {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof EqualsAndHashCode4;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- result = result * PRIME + super.hashCode();
+ int result = super.hashCode();
return result;
}
}
diff --git a/test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys1.java b/test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys1.java
index 449a1b2e..82a5a42d 100644
--- a/test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys1.java
+++ b/test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys1.java
@@ -1,7 +1,6 @@
class EqualsAndHashCodeConfigKeys1Parent {
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCodeConfigKeys1Parent)) return false;
@@ -10,13 +9,11 @@ class EqualsAndHashCodeConfigKeys1Parent {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof EqualsAndHashCodeConfigKeys1Parent;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
int result = 1;
return result;
@@ -26,7 +23,6 @@ class EqualsAndHashCodeConfigKeys1 extends EqualsAndHashCodeConfigKeys1Parent {
int x;
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCodeConfigKeys1)) return false;
@@ -36,13 +32,11 @@ class EqualsAndHashCodeConfigKeys1 extends EqualsAndHashCodeConfigKeys1Parent {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof EqualsAndHashCodeConfigKeys1;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
diff --git a/test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java b/test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java
index 333b6b58..c46c7f1c 100644
--- a/test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java
+++ b/test/transform/resource/after-delombok/EqualsAndHashCodeConfigKeys2.java
@@ -1,7 +1,6 @@
class EqualsAndHashCodeConfigKeys2Object extends Object {
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCodeConfigKeys2Object)) return false;
@@ -10,13 +9,11 @@ class EqualsAndHashCodeConfigKeys2Object extends Object {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof EqualsAndHashCodeConfigKeys2Object;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
int result = 1;
return result;
@@ -25,7 +22,6 @@ class EqualsAndHashCodeConfigKeys2Object extends Object {
class EqualsAndHashCodeConfigKeys2Parent {
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCodeConfigKeys2Parent)) return false;
@@ -34,13 +30,11 @@ class EqualsAndHashCodeConfigKeys2Parent {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof EqualsAndHashCodeConfigKeys2Parent;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
int result = 1;
return result;
@@ -50,7 +44,6 @@ class EqualsAndHashCodeConfigKeys2 extends EqualsAndHashCodeConfigKeys2Parent {
int x;
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCodeConfigKeys2)) return false;
@@ -61,17 +54,14 @@ class EqualsAndHashCodeConfigKeys2 extends EqualsAndHashCodeConfigKeys2Parent {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof EqualsAndHashCodeConfigKeys2;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
- int result = 1;
- result = result * PRIME + super.hashCode();
+ int result = super.hashCode();
result = result * PRIME + this.x;
return result;
}
diff --git a/test/transform/resource/after-delombok/EqualsAndHashCodeNestedShadow.java b/test/transform/resource/after-delombok/EqualsAndHashCodeNestedShadow.java
index ac687d84..0b479c2d 100644
--- a/test/transform/resource/after-delombok/EqualsAndHashCodeNestedShadow.java
+++ b/test/transform/resource/after-delombok/EqualsAndHashCodeNestedShadow.java
@@ -5,7 +5,6 @@ interface EqualsAndHashCodeNestedShadow {
public static class Foo extends Bar implements EqualsAndHashCodeNestedShadow.Foo {
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCodeNestedShadow.Bar.Foo)) return false;
@@ -14,13 +13,11 @@ interface EqualsAndHashCodeNestedShadow {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof EqualsAndHashCodeNestedShadow.Bar.Foo;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
int result = 1;
return result;
@@ -31,7 +28,6 @@ interface EqualsAndHashCodeNestedShadow {
public static class Foo<T> extends Bar implements EqualsAndHashCodeNestedShadow.Foo {
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCodeNestedShadow.Baz.Foo)) return false;
@@ -40,13 +36,11 @@ interface EqualsAndHashCodeNestedShadow {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof EqualsAndHashCodeNestedShadow.Baz.Foo;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
int result = 1;
return result;
diff --git a/test/transform/resource/after-delombok/EqualsAndHashcodeOfExclude.java b/test/transform/resource/after-delombok/EqualsAndHashCodeOfAndExclude.java
index 8b9888e9..895da4db 100644
--- a/test/transform/resource/after-delombok/EqualsAndHashcodeOfExclude.java
+++ b/test/transform/resource/after-delombok/EqualsAndHashCodeOfAndExclude.java
@@ -3,7 +3,6 @@ final class EqualsAndHashCodeOf {
int y;
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCodeOf)) return false;
@@ -13,7 +12,6 @@ final class EqualsAndHashCodeOf {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -26,7 +24,6 @@ final class EqualsAndHashCodeExclude {
int y;
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCodeExclude)) return false;
@@ -36,7 +33,6 @@ final class EqualsAndHashCodeExclude {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
diff --git a/test/transform/resource/after-delombok/EqualsAndHashCodeWithExistingMethods.java b/test/transform/resource/after-delombok/EqualsAndHashCodeWithExistingMethods.java
index d9e4a913..dcad0263 100644
--- a/test/transform/resource/after-delombok/EqualsAndHashCodeWithExistingMethods.java
+++ b/test/transform/resource/after-delombok/EqualsAndHashCodeWithExistingMethods.java
@@ -17,7 +17,6 @@ final class EqualsAndHashCodeWithExistingMethods3 extends EqualsAndHashCodeWithE
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCodeWithExistingMethods3)) return false;
@@ -29,11 +28,9 @@ final class EqualsAndHashCodeWithExistingMethods3 extends EqualsAndHashCodeWithE
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
- int result = 1;
- result = result * PRIME + super.hashCode();
+ int result = super.hashCode();
result = result * PRIME + this.x;
return result;
}
diff --git a/test/transform/resource/after-delombok/EqualsAndHashCodeWithOnParam.java b/test/transform/resource/after-delombok/EqualsAndHashCodeWithOnParam.java
index 3bf4b661..91c62b0f 100644
--- a/test/transform/resource/after-delombok/EqualsAndHashCodeWithOnParam.java
+++ b/test/transform/resource/after-delombok/EqualsAndHashCodeWithOnParam.java
@@ -9,7 +9,6 @@ class EqualsAndHashCodeWithOnParam {
String b;
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(@Nullable final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof EqualsAndHashCodeWithOnParam)) return false;
@@ -27,13 +26,11 @@ class EqualsAndHashCodeWithOnParam {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(@Nullable final java.lang.Object other) {
return other instanceof EqualsAndHashCodeWithOnParam;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
diff --git a/test/transform/resource/after-delombok/FieldDefaultsViaConfigAndRequiredArgsConstructor.java b/test/transform/resource/after-delombok/FieldDefaultsViaConfigAndRequiredArgsConstructor.java
index f92f0890..959bb1e0 100644
--- a/test/transform/resource/after-delombok/FieldDefaultsViaConfigAndRequiredArgsConstructor.java
+++ b/test/transform/resource/after-delombok/FieldDefaultsViaConfigAndRequiredArgsConstructor.java
@@ -1,8 +1,6 @@
class FieldDefaultsViaConfigAndRequiredArgsConstructor {
final int x;
- @java.beans.ConstructorProperties({"x"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public FieldDefaultsViaConfigAndRequiredArgsConstructor(final int x) {
this.x = x;
}
diff --git a/test/transform/resource/after-delombok/GenerateSuppressFBWarnings.java b/test/transform/resource/after-delombok/GenerateSuppressFBWarnings.java
index 02c91700..e78ee55c 100644
--- a/test/transform/resource/after-delombok/GenerateSuppressFBWarnings.java
+++ b/test/transform/resource/after-delombok/GenerateSuppressFBWarnings.java
@@ -3,7 +3,6 @@ class GenerateSuppressFBWarnings {
int y;
@java.lang.SuppressWarnings("all")
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(justification = "generated code")
- @javax.annotation.Generated("lombok")
public int getY() {
return this.y;
}
diff --git a/test/transform/resource/after-delombok/GeneratedJavaxOnLombokOn.java b/test/transform/resource/after-delombok/GeneratedJavaxOnLombokOn.java
index 90fe0e3a..2ca96e7c 100644
--- a/test/transform/resource/after-delombok/GeneratedJavaxOnLombokOn.java
+++ b/test/transform/resource/after-delombok/GeneratedJavaxOnLombokOn.java
@@ -1,3 +1,4 @@
+//version :8
class GeneratedJavaxOnLombokOn {
int x;
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/GeneratedOffJavaxOn.java b/test/transform/resource/after-delombok/GeneratedOffJavaxOn.java
index 05c2be09..4b10c708 100644
--- a/test/transform/resource/after-delombok/GeneratedOffJavaxOn.java
+++ b/test/transform/resource/after-delombok/GeneratedOffJavaxOn.java
@@ -1,3 +1,4 @@
+//version :8
class GeneratedOffJavaxOn {
int x;
@java.lang.SuppressWarnings("all")
diff --git a/test/transform/resource/after-delombok/GetterAccessLevel.java b/test/transform/resource/after-delombok/GetterAccessLevel.java
index 31f8a59f..2574340a 100644
--- a/test/transform/resource/after-delombok/GetterAccessLevel.java
+++ b/test/transform/resource/after-delombok/GetterAccessLevel.java
@@ -11,47 +11,38 @@ class GetterAccessLevel {
String publicString;
String value;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private boolean isPrivate() {
return this.isPrivate;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
boolean isPackage() {
return this.isPackage;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean isProtected() {
return this.isProtected;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean isPublic() {
return this.isPublic;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private String getPrivateString() {
return this.privateString;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
String getPackageString() {
return this.packageString;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected String getProtectedString() {
return this.protectedString;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getPublicString() {
return this.publicString;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getValue() {
return this.value;
}
diff --git a/test/transform/resource/after-delombok/GetterAlreadyExists.java b/test/transform/resource/after-delombok/GetterAlreadyExists.java
index ba2bb5e1..d7f32ff1 100644
--- a/test/transform/resource/after-delombok/GetterAlreadyExists.java
+++ b/test/transform/resource/after-delombok/GetterAlreadyExists.java
@@ -4,7 +4,6 @@ class Getter1 {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean isFoo() {
return this.foo;
}
@@ -27,7 +26,6 @@ class Getter4 {
return null;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getFoo() {
return this.foo;
}
@@ -38,7 +36,6 @@ class Getter5 {
return null;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getFoo() {
return this.foo;
}
@@ -55,7 +52,6 @@ class Getter7 {
return false;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getFoo() {
return this.foo;
}
@@ -66,7 +62,6 @@ class Getter8 {
return false;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getFoo() {
return this.foo;
}
@@ -83,7 +78,6 @@ class Getter10 {
return false;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean isFoo() {
return this.foo;
}
@@ -106,7 +100,6 @@ class Getter13 {
return false;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getFoo() {
return this.foo;
}
@@ -117,7 +110,6 @@ class Getter14 {
return false;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getFoo() {
return this.foo;
}
@@ -134,7 +126,6 @@ class Getter16 {
return "";
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getFoo() {
return this.foo;
}
@@ -145,7 +136,6 @@ class Getter17 {
return "";
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getFoo() {
return this.foo;
}
diff --git a/test/transform/resource/after-delombok/GetterBoolean.java b/test/transform/resource/after-delombok/GetterBoolean.java
index d6347abd..6ac91512 100644
--- a/test/transform/resource/after-delombok/GetterBoolean.java
+++ b/test/transform/resource/after-delombok/GetterBoolean.java
@@ -3,17 +3,14 @@ class Getter {
boolean isBar;
boolean hasBaz;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean isFoo() {
return this.foo;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean isBar() {
return this.isBar;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean isHasBaz() {
return this.hasBaz;
}
@@ -24,7 +21,6 @@ class MoreGetter {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean isFoo() {
return this.foo;
}
diff --git a/test/transform/resource/after-delombok/GetterDeprecated.java b/test/transform/resource/after-delombok/GetterDeprecated.java
index 8bef2b6a..af123509 100644
--- a/test/transform/resource/after-delombok/GetterDeprecated.java
+++ b/test/transform/resource/after-delombok/GetterDeprecated.java
@@ -7,7 +7,6 @@ class GetterDeprecated {
int javadoc;
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getAnnotation() {
return this.annotation;
}
@@ -16,7 +15,6 @@ class GetterDeprecated {
*/
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getJavadoc() {
return this.javadoc;
}
diff --git a/test/transform/resource/after-delombok/GetterEnum.java b/test/transform/resource/after-delombok/GetterEnum.java
index 439430ee..272a2ee6 100644
--- a/test/transform/resource/after-delombok/GetterEnum.java
+++ b/test/transform/resource/after-delombok/GetterEnum.java
@@ -2,20 +2,16 @@ enum GetterEnum {
ONE(1, "One");
private final int id;
private final String name;
- @java.beans.ConstructorProperties({"id", "name"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private GetterEnum(final int id, final String name) {
this.id = id;
this.name = name;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getId() {
return this.id;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getName() {
return this.name;
}
diff --git a/test/transform/resource/after-delombok/GetterLazy.java b/test/transform/resource/after-delombok/GetterLazy.java
index 2ea3cbf2..25a71848 100644
--- a/test/transform/resource/after-delombok/GetterLazy.java
+++ b/test/transform/resource/after-delombok/GetterLazy.java
@@ -3,7 +3,6 @@ class GetterLazy {
}
private final java.util.concurrent.atomic.AtomicReference<java.lang.Object> fieldName = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public ValueType getFieldName() {
java.lang.Object value = this.fieldName.get();
if (value == null) {
diff --git a/test/transform/resource/after-delombok/GetterLazyBoolean.java b/test/transform/resource/after-delombok/GetterLazyBoolean.java
index 41349447..3ca127e3 100644
--- a/test/transform/resource/after-delombok/GetterLazyBoolean.java
+++ b/test/transform/resource/after-delombok/GetterLazyBoolean.java
@@ -6,7 +6,6 @@ class GetterLazyBoolean {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof GetterLazyBoolean)) return false;
@@ -16,13 +15,11 @@ class GetterLazyBoolean {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof GetterLazyBoolean;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -31,12 +28,10 @@ class GetterLazyBoolean {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "GetterLazyBoolean(booleanValue=" + this.isBooleanValue() + ")";
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean isBooleanValue() {
java.lang.Object value = this.booleanValue.get();
if (value == null) {
@@ -52,7 +47,6 @@ class GetterLazyBoolean {
return (java.lang.Boolean) value;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean isOtherBooleanValue() {
java.lang.Object value = this.otherBooleanValue.get();
if (value == null) {
diff --git a/test/transform/resource/after-delombok/GetterLazyEahcToString.java b/test/transform/resource/after-delombok/GetterLazyEahcToString.java
index 495087f9..e0a0f6b2 100644
--- a/test/transform/resource/after-delombok/GetterLazyEahcToString.java
+++ b/test/transform/resource/after-delombok/GetterLazyEahcToString.java
@@ -5,7 +5,6 @@ class GetterLazyEahcToString {
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof GetterLazyEahcToString)) return false;
@@ -22,7 +21,6 @@ class GetterLazyEahcToString {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof GetterLazyEahcToString;
@@ -30,7 +28,6 @@ class GetterLazyEahcToString {
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -43,14 +40,12 @@ class GetterLazyEahcToString {
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "GetterLazyEahcToString(value=" + this.getValue() + ", value2=" + this.value2 + ")";
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getValue() {
java.lang.Object value = this.value.get();
@@ -68,7 +63,6 @@ class GetterLazyEahcToString {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getValue2() {
return this.value2;
}
diff --git a/test/transform/resource/after-delombok/GetterLazyInvalid.java b/test/transform/resource/after-delombok/GetterLazyInvalid.java
index 9e7d5bee..81d87c3c 100644
--- a/test/transform/resource/after-delombok/GetterLazyInvalid.java
+++ b/test/transform/resource/after-delombok/GetterLazyInvalid.java
@@ -13,7 +13,6 @@ class GetterLazyInvalidNone {
class GetterLazyInvalidClass {
private final String fieldName = "";
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getFieldName() {
return this.fieldName;
}
diff --git a/test/transform/resource/after-delombok/GetterLazyNative.java b/test/transform/resource/after-delombok/GetterLazyNative.java
index 0d88558d..b9d471ff 100644
--- a/test/transform/resource/after-delombok/GetterLazyNative.java
+++ b/test/transform/resource/after-delombok/GetterLazyNative.java
@@ -9,7 +9,6 @@ class GetterLazyNative {
private final java.util.concurrent.atomic.AtomicReference<java.lang.Object> charField = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
private final java.util.concurrent.atomic.AtomicReference<java.lang.Object> intArrayField = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean isBooleanField() {
java.lang.Object value = this.booleanField.get();
if (value == null) {
@@ -25,7 +24,6 @@ class GetterLazyNative {
return (java.lang.Boolean) value;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public byte getByteField() {
java.lang.Object value = this.byteField.get();
if (value == null) {
@@ -41,7 +39,6 @@ class GetterLazyNative {
return (java.lang.Byte) value;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public short getShortField() {
java.lang.Object value = this.shortField.get();
if (value == null) {
@@ -57,7 +54,6 @@ class GetterLazyNative {
return (java.lang.Short) value;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getIntField() {
java.lang.Object value = this.intField.get();
if (value == null) {
@@ -73,7 +69,6 @@ class GetterLazyNative {
return (java.lang.Integer) value;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public long getLongField() {
java.lang.Object value = this.longField.get();
if (value == null) {
@@ -89,7 +84,6 @@ class GetterLazyNative {
return (java.lang.Long) value;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public float getFloatField() {
java.lang.Object value = this.floatField.get();
if (value == null) {
@@ -105,7 +99,6 @@ class GetterLazyNative {
return (java.lang.Float) value;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public double getDoubleField() {
java.lang.Object value = this.doubleField.get();
if (value == null) {
@@ -121,7 +114,6 @@ class GetterLazyNative {
return (java.lang.Double) value;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public char getCharField() {
java.lang.Object value = this.charField.get();
if (value == null) {
@@ -137,7 +129,6 @@ class GetterLazyNative {
return (java.lang.Character) value;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int[] getIntArrayField() {
java.lang.Object value = this.intArrayField.get();
if (value == null) {
diff --git a/test/transform/resource/after-delombok/GetterLazyTransient.java b/test/transform/resource/after-delombok/GetterLazyTransient.java
index dbebad90..49093ed1 100644
--- a/test/transform/resource/after-delombok/GetterLazyTransient.java
+++ b/test/transform/resource/after-delombok/GetterLazyTransient.java
@@ -3,7 +3,6 @@ class GetterLazyTransient {
private final transient int transientField = 2;
private final transient int nonLazyTransientField = 3;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getNonTransientField() {
java.lang.Object value = this.nonTransientField.get();
if (value == null) {
@@ -19,7 +18,6 @@ class GetterLazyTransient {
return (java.lang.Integer) value;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getNonLazyTransientField() {
return this.nonLazyTransientField;
}
diff --git a/test/transform/resource/after-delombok/GetterNone.java b/test/transform/resource/after-delombok/GetterNone.java
index 2ff386a2..5666f6fe 100644
--- a/test/transform/resource/after-delombok/GetterNone.java
+++ b/test/transform/resource/after-delombok/GetterNone.java
@@ -2,7 +2,6 @@ class GetterNone {
int i;
int foo;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getI() {
return this.i;
}
diff --git a/test/transform/resource/after-delombok/GetterOnClass.java b/test/transform/resource/after-delombok/GetterOnClass.java
index 3a7c76a0..f0025370 100644
--- a/test/transform/resource/after-delombok/GetterOnClass.java
+++ b/test/transform/resource/after-delombok/GetterOnClass.java
@@ -2,7 +2,6 @@ class GetterOnClass1 {
boolean isNone;
boolean isPublic;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean isPublic() {
return this.isPublic;
}
@@ -12,12 +11,10 @@ class GetterOnClass2 {
boolean isProtected;
boolean isPackage;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean isProtected() {
return this.isProtected;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
boolean isPackage() {
return this.isPackage;
}
@@ -26,7 +23,6 @@ class GetterOnClass3 {
boolean isNone;
boolean isPackage;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
boolean isPackage() {
return this.isPackage;
}
@@ -35,7 +31,6 @@ class GetterOnClass4 {
boolean isNone;
boolean isPrivate;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private boolean isPrivate() {
return this.isPrivate;
}
@@ -44,7 +39,6 @@ class GetterOnClass5 {
boolean isNone;
boolean isPublic;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean isPublic() {
return this.isPublic;
}
@@ -54,13 +48,11 @@ class GetterOnClass6 {
@lombok.NonNull
String nonNull;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getCouldBeNull() {
return this.couldBeNull;
}
@lombok.NonNull
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getNonNull() {
return this.nonNull;
}
diff --git a/test/transform/resource/after-delombok/GetterOnMethod.java b/test/transform/resource/after-delombok/GetterOnMethod.java
index 37ae83a4..4a5b3622 100644
--- a/test/transform/resource/after-delombok/GetterOnMethod.java
+++ b/test/transform/resource/after-delombok/GetterOnMethod.java
@@ -6,21 +6,18 @@ class GetterOnMethod {
}
@Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getI() {
return this.i;
}
@java.lang.Deprecated
@Test
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getJ() {
return this.j;
}
@java.lang.Deprecated
@Test
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getK() {
return this.k;
}
diff --git a/test/transform/resource/after-delombok/GetterOnMethodErrors.java b/test/transform/resource/after-delombok/GetterOnMethodErrors.java
index b7fe82c2..a69966ec 100644
--- a/test/transform/resource/after-delombok/GetterOnMethodErrors.java
+++ b/test/transform/resource/after-delombok/GetterOnMethodErrors.java
@@ -3,7 +3,6 @@ class PlaceFillerToMakeSurePositionIsRelevant {
class GetterOnMethodErrors {
private int test;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getTest() {
return this.test;
}
diff --git a/test/transform/resource/after-delombok/GetterOnMethodErrors2.java b/test/transform/resource/after-delombok/GetterOnMethodErrors2.java
index 3114d23d..639022d0 100644
--- a/test/transform/resource/after-delombok/GetterOnMethodErrors2.java
+++ b/test/transform/resource/after-delombok/GetterOnMethodErrors2.java
@@ -10,46 +10,38 @@ class GetterOnMethodErrors2 {
public @interface Test {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getBad1() {
return this.bad1;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getBad2() {
return this.bad2;
}
@Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getBad3() {
return this.bad3;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getBad4() {
return this.bad4;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getGood1() {
return this.good1;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getGood2() {
return this.good2;
}
@Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getGood3() {
return this.good3;
}
@Deprecated
@Test
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getGood4() {
return this.good4;
}
diff --git a/test/transform/resource/after-delombok/GetterOnStatic.java b/test/transform/resource/after-delombok/GetterOnStatic.java
index 34c2dba1..99e63e05 100644
--- a/test/transform/resource/after-delombok/GetterOnStatic.java
+++ b/test/transform/resource/after-delombok/GetterOnStatic.java
@@ -2,12 +2,10 @@ class Getter {
static boolean foo;
static int bar;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static boolean isFoo() {
return Getter.foo;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static int getBar() {
return Getter.bar;
}
diff --git a/test/transform/resource/after-delombok/GetterPlain.java b/test/transform/resource/after-delombok/GetterPlain.java
index 9af44b04..ceae2aac 100644
--- a/test/transform/resource/after-delombok/GetterPlain.java
+++ b/test/transform/resource/after-delombok/GetterPlain.java
@@ -2,12 +2,10 @@ class GetterPlain {
int i;
int foo;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getI() {
return this.i;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getFoo() {
return this.foo;
}
diff --git a/test/transform/resource/after-delombok/GetterSetterJavadoc.java b/test/transform/resource/after-delombok/GetterSetterJavadoc.java
index f156de92..019b3c37 100644
--- a/test/transform/resource/after-delombok/GetterSetterJavadoc.java
+++ b/test/transform/resource/after-delombok/GetterSetterJavadoc.java
@@ -4,7 +4,6 @@ class GetterSetterJavadoc1 {
*/
private int fieldName;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public GetterSetterJavadoc1() {
}
/**
@@ -13,7 +12,6 @@ class GetterSetterJavadoc1 {
* @return Sky is blue1
*/
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getFieldName() {
return this.fieldName;
}
@@ -23,13 +21,11 @@ class GetterSetterJavadoc1 {
* @param fieldName Hello, World1
*/
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setFieldName(final int fieldName) {
this.fieldName = fieldName;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof GetterSetterJavadoc1)) return false;
@@ -39,13 +35,11 @@ class GetterSetterJavadoc1 {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof GetterSetterJavadoc1;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -54,7 +48,6 @@ class GetterSetterJavadoc1 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "GetterSetterJavadoc1(fieldName=" + this.getFieldName() + ")";
}
@@ -70,7 +63,6 @@ class GetterSetterJavadoc2 {
* @return Sky is blue2
*/
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getFieldName() {
return this.fieldName;
}
@@ -80,7 +72,6 @@ class GetterSetterJavadoc2 {
* @param fieldName Hello, World2
*/
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setFieldName(final int fieldName) {
this.fieldName = fieldName;
}
@@ -95,7 +86,6 @@ class GetterSetterJavadoc3 {
* @return Sky is blue3
*/
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getFieldName() {
return this.fieldName;
}
@@ -104,7 +94,6 @@ class GetterSetterJavadoc3 {
* @param fieldName Hello, World3
*/
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setFieldName(final int fieldName) {
this.fieldName = fieldName;
}
@@ -120,7 +109,6 @@ class GetterSetterJavadoc4 {
* @return Sky is blue4
*/
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int fieldName() {
return this.fieldName;
}
@@ -131,7 +119,6 @@ class GetterSetterJavadoc4 {
* @return this
*/
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public GetterSetterJavadoc4 fieldName(final int fieldName) {
this.fieldName = fieldName;
return this;
@@ -147,7 +134,6 @@ class GetterSetterJavadoc5 {
* @return Sky is blue5
*/
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int fieldName() {
return this.fieldName;
}
@@ -157,7 +143,6 @@ class GetterSetterJavadoc5 {
* @return Sky is blue5
*/
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public GetterSetterJavadoc5 fieldName(final int fieldName) {
this.fieldName = fieldName;
return this;
diff --git a/test/transform/resource/after-delombok/GetterWithDollar.java b/test/transform/resource/after-delombok/GetterWithDollar.java
index 60625e6d..56435665 100644
--- a/test/transform/resource/after-delombok/GetterWithDollar.java
+++ b/test/transform/resource/after-delombok/GetterWithDollar.java
@@ -1,7 +1,6 @@
class GetterWithDollar1 {
int $i;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int get$i() {
return this.$i;
}
@@ -10,12 +9,10 @@ class GetterWithDollar2 {
int $i;
int i;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int get$i() {
return this.$i;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getI() {
return this.i;
}
diff --git a/test/transform/resource/after-delombok/InjectField.java b/test/transform/resource/after-delombok/InjectField.java
index 9da58db4..98f9762b 100644
--- a/test/transform/resource/after-delombok/InjectField.java
+++ b/test/transform/resource/after-delombok/InjectField.java
@@ -5,14 +5,11 @@ enum InjectField1 {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(InjectField1.class.getName());
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private final java.lang.Object $lock = new java.lang.Object[0];
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final java.lang.Object $LOCK = new java.lang.Object[0];
private static final String LOG_MESSAGE = "static initializer";
@@ -40,10 +37,8 @@ enum InjectField1 {
class InjectField2 {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(InjectField2.class.getName());
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private final java.lang.Object $lock = new java.lang.Object[0];
private static final String LOG_MESSAGE = "static initializer";
@@ -61,7 +56,6 @@ class InjectField2 {
class InjectField3 {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(InjectField3.class.getName());
static {
log.log(Level.FINE, "static initializer");
diff --git a/test/transform/resource/after-delombok/InnerClass.java b/test/transform/resource/after-delombok/InnerClass.java
new file mode 100644
index 00000000..6d42bb79
--- /dev/null
+++ b/test/transform/resource/after-delombok/InnerClass.java
@@ -0,0 +1,51 @@
+class A {
+ class B {
+ String s;
+ @java.lang.SuppressWarnings("all")
+ public B(final String s) {
+ this.s = s;
+ }
+ }
+}
+class C {
+ final class D {
+ private final A a;
+ A.B test(String s) {
+ return a.new B(s) {
+ };
+ }
+ @java.lang.SuppressWarnings("all")
+ public D(final A a) {
+ this.a = a;
+ }
+ @java.lang.SuppressWarnings("all")
+ public A getA() {
+ return this.a;
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public boolean equals(final java.lang.Object o) {
+ if (o == this) return true;
+ if (!(o instanceof C.D)) return false;
+ final C.D other = (C.D) o;
+ final java.lang.Object this$a = this.getA();
+ final java.lang.Object other$a = other.getA();
+ if (this$a == null ? other$a != null : !this$a.equals(other$a)) return false;
+ return true;
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ final java.lang.Object $a = this.getA();
+ result = result * PRIME + ($a == null ? 43 : $a.hashCode());
+ return result;
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "C.D(a=" + this.getA() + ")";
+ }
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/after-delombok/LoggerCommons.java b/test/transform/resource/after-delombok/LoggerCommons.java
index 3cb26794..954e730b 100644
--- a/test/transform/resource/after-delombok/LoggerCommons.java
+++ b/test/transform/resource/after-delombok/LoggerCommons.java
@@ -1,15 +1,12 @@
class LoggerCommons {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(LoggerCommons.class);
}
class LoggerCommonsWithImport {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(LoggerCommonsWithImport.class);
}
class LoggerCommonsWithDifferentName {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog("DifferentName");
}
diff --git a/test/transform/resource/after-delombok/LoggerConfig.java b/test/transform/resource/after-delombok/LoggerConfig.java
index 1fa6cb2f..d0944126 100644
--- a/test/transform/resource/after-delombok/LoggerConfig.java
+++ b/test/transform/resource/after-delombok/LoggerConfig.java
@@ -1,5 +1,4 @@
class LoggerWithConfig {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private final org.slf4j.Logger myLogger = org.slf4j.LoggerFactory.getLogger(LoggerWithConfig.class);
}
diff --git a/test/transform/resource/after-delombok/LoggerJBossLog.java b/test/transform/resource/after-delombok/LoggerJBossLog.java
index 864b39fe..41c18805 100644
--- a/test/transform/resource/after-delombok/LoggerJBossLog.java
+++ b/test/transform/resource/after-delombok/LoggerJBossLog.java
@@ -1,23 +1,19 @@
class LoggerJBossLog {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(LoggerJBossLog.class);
}
class LoggerJBossLogWithImport {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(LoggerJBossLogWithImport.class);
}
class LoggerJBossLogOuter {
static class Inner {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(Inner.class);
}
}
class LoggerJBossLogWithDifferentLoggerName {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger("DifferentLogger");
}
diff --git a/test/transform/resource/after-delombok/LoggerJul.java b/test/transform/resource/after-delombok/LoggerJul.java
index 80659477..63f96733 100644
--- a/test/transform/resource/after-delombok/LoggerJul.java
+++ b/test/transform/resource/after-delombok/LoggerJul.java
@@ -1,15 +1,12 @@
class LoggerJul {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(LoggerJul.class.getName());
}
class LoggerJulWithImport {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger(LoggerJulWithImport.class.getName());
}
class LoggerJulWithDifferentName {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final java.util.logging.Logger log = java.util.logging.Logger.getLogger("DifferentName");
}
diff --git a/test/transform/resource/after-delombok/LoggerLog4j.java b/test/transform/resource/after-delombok/LoggerLog4j.java
index 35c2e42c..7d9d4409 100644
--- a/test/transform/resource/after-delombok/LoggerLog4j.java
+++ b/test/transform/resource/after-delombok/LoggerLog4j.java
@@ -1,15 +1,12 @@
class LoggerLog4j {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(LoggerLog4j.class);
}
class LoggerLog4jWithImport {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(LoggerLog4jWithImport.class);
}
class LoggerLog4jWithDifferentName {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger("DifferentName");
}
diff --git a/test/transform/resource/after-delombok/LoggerLog4j2.java b/test/transform/resource/after-delombok/LoggerLog4j2.java
index 70a09645..3d8b7b5b 100644
--- a/test/transform/resource/after-delombok/LoggerLog4j2.java
+++ b/test/transform/resource/after-delombok/LoggerLog4j2.java
@@ -1,15 +1,12 @@
class LoggerLog4j2 {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.apache.logging.log4j.Logger log = org.apache.logging.log4j.LogManager.getLogger(LoggerLog4j2.class);
}
class LoggerLog4j2WithImport {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.apache.logging.log4j.Logger log = org.apache.logging.log4j.LogManager.getLogger(LoggerLog4j2WithImport.class);
}
class LoggerLog4j2WithDifferentName {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.apache.logging.log4j.Logger log = org.apache.logging.log4j.LogManager.getLogger("DifferentName");
}
diff --git a/test/transform/resource/after-delombok/LoggerSlf4j.java b/test/transform/resource/after-delombok/LoggerSlf4j.java
index a00bca40..68d685f0 100644
--- a/test/transform/resource/after-delombok/LoggerSlf4j.java
+++ b/test/transform/resource/after-delombok/LoggerSlf4j.java
@@ -1,23 +1,19 @@
class LoggerSlf4j {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4j.class);
}
class LoggerSlf4jWithImport {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4jWithImport.class);
}
class LoggerSlf4jOuter {
static class Inner {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(Inner.class);
}
}
class LoggerSlf4jWithDifferentLoggerName {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger("DifferentLogger");
}
diff --git a/test/transform/resource/after-delombok/LoggerSlf4jTypes.java b/test/transform/resource/after-delombok/LoggerSlf4jTypes.java
index 1a13f7a2..6730e805 100644
--- a/test/transform/resource/after-delombok/LoggerSlf4jTypes.java
+++ b/test/transform/resource/after-delombok/LoggerSlf4jTypes.java
@@ -5,19 +5,16 @@ interface LoggerSlf4jTypesInterface {
enum LoggerSlf4jTypesEnum {
;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4jTypesEnum.class);
}
enum LoggerSlf4jTypesEnumWithElement {
FOO;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4jTypesEnumWithElement.class);
}
interface LoggerSlf4jTypesInterfaceOuter {
class Inner {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(Inner.class);
}
}
diff --git a/test/transform/resource/after-delombok/LoggerSlf4jWithPackage.java b/test/transform/resource/after-delombok/LoggerSlf4jWithPackage.java
index 8a1d543f..b82ed6ec 100644
--- a/test/transform/resource/after-delombok/LoggerSlf4jWithPackage.java
+++ b/test/transform/resource/after-delombok/LoggerSlf4jWithPackage.java
@@ -1,13 +1,11 @@
package before;
class LoggerSlf4jWithPackage {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(LoggerSlf4jWithPackage.class);
}
class LoggerSlf4jWithPackageOuter {
static class Inner {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(Inner.class);
}
}
diff --git a/test/transform/resource/after-delombok/LoggerXSlf4j.java b/test/transform/resource/after-delombok/LoggerXSlf4j.java
index 6940d69f..781733cf 100644
--- a/test/transform/resource/after-delombok/LoggerXSlf4j.java
+++ b/test/transform/resource/after-delombok/LoggerXSlf4j.java
@@ -1,15 +1,12 @@
class LoggerXSlf4j {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.slf4j.ext.XLogger log = org.slf4j.ext.XLoggerFactory.getXLogger(LoggerXSlf4j.class);
}
class LoggerXSlf4jWithImport {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.slf4j.ext.XLogger log = org.slf4j.ext.XLoggerFactory.getXLogger(LoggerXSlf4jWithImport.class);
}
class LoggerXSlf4jWithDifferentName {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final org.slf4j.ext.XLogger log = org.slf4j.ext.XLoggerFactory.getXLogger("DifferentName");
}
diff --git a/test/transform/resource/after-delombok/MixGetterVal.java b/test/transform/resource/after-delombok/MixGetterVal.java
index fc178113..a2b44ea0 100644
--- a/test/transform/resource/after-delombok/MixGetterVal.java
+++ b/test/transform/resource/after-delombok/MixGetterVal.java
@@ -9,7 +9,6 @@ class MixGetterVal {
m(a);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
diff --git a/test/transform/resource/after-delombok/MultiFieldGetter.java b/test/transform/resource/after-delombok/MultiFieldGetter.java
index 6488d9dc..3586a7e6 100644
--- a/test/transform/resource/after-delombok/MultiFieldGetter.java
+++ b/test/transform/resource/after-delombok/MultiFieldGetter.java
@@ -2,12 +2,10 @@ class MultiFieldGetter {
int x;
int y;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected int getX() {
return this.x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected int getY() {
return this.y;
}
@@ -16,12 +14,10 @@ class MultiFieldGetter2 {
int x;
int y;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
int getX() {
return this.x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
int getY() {
return this.y;
}
diff --git a/test/transform/resource/after-delombok/NoArgsConstructorForce.java b/test/transform/resource/after-delombok/NoArgsConstructorForce.java
index 5b6c6357..3336ca19 100644
--- a/test/transform/resource/after-delombok/NoArgsConstructorForce.java
+++ b/test/transform/resource/after-delombok/NoArgsConstructorForce.java
@@ -5,7 +5,6 @@ public class NoArgsConstructorForce {
private final java.util.List<?>[] fullQualifiedList;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public NoArgsConstructorForce() {
this.i = null;
this.o = null;
diff --git a/test/transform/resource/after-delombok/NonNullPlain.java b/test/transform/resource/after-delombok/NonNullPlain.java
index 52a80c1a..f6b8037e 100644
--- a/test/transform/resource/after-delombok/NonNullPlain.java
+++ b/test/transform/resource/after-delombok/NonNullPlain.java
@@ -10,9 +10,7 @@ class NonNullPlain {
@Retention(RetentionPolicy.CLASS)
public @interface NotNull {
}
- @java.beans.ConstructorProperties({"i", "s"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public NonNullPlain(@lombok.NonNull final int i, @lombok.NonNull final String s) {
if (s == null) {
throw new java.lang.NullPointerException("s");
@@ -22,28 +20,23 @@ class NonNullPlain {
}
@lombok.NonNull
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getI() {
return this.i;
}
@lombok.NonNull
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getS() {
return this.s;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Object getO() {
return this.o;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setI(@lombok.NonNull final int i) {
this.i = i;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setS(@lombok.NonNull final String s) {
if (s == null) {
throw new java.lang.NullPointerException("s");
@@ -51,7 +44,6 @@ class NonNullPlain {
this.s = s;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setO(final Object o) {
this.o = o;
}
diff --git a/test/transform/resource/after-delombok/NonNullWithAlternateException.java b/test/transform/resource/after-delombok/NonNullWithAlternateException.java
index a5c0a2bc..76c6406a 100644
--- a/test/transform/resource/after-delombok/NonNullWithAlternateException.java
+++ b/test/transform/resource/after-delombok/NonNullWithAlternateException.java
@@ -8,7 +8,6 @@ public class NonNullWithAlternateException {
System.out.println(arg);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setTest(@lombok.NonNull final String test) {
if (test == null) {
throw new java.lang.IllegalArgumentException("test is null");
diff --git a/test/transform/resource/after-delombok/OnXJava7Style.java b/test/transform/resource/after-delombok/OnXJava7Style.java
index f3a58d79..7ebf65a3 100644
--- a/test/transform/resource/after-delombok/OnXJava7Style.java
+++ b/test/transform/resource/after-delombok/OnXJava7Style.java
@@ -13,30 +13,25 @@ public class OnXJava7Style {
String e;
@Foo
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getA() {
return this.a;
}
@Foo
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setB(final String b) {
this.b = b;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setC(@Foo("a") final String c) {
this.c = c;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setD(@Bar(stuff = "b") final String d) {
this.d = d;
}
@Foo("c")
@Bar(stuff = "d")
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getE() {
return this.e;
}
diff --git a/test/transform/resource/after-delombok/OnXJava8Style.java b/test/transform/resource/after-delombok/OnXJava8Style.java
index b0ea96d6..d2f76e10 100644
--- a/test/transform/resource/after-delombok/OnXJava8Style.java
+++ b/test/transform/resource/after-delombok/OnXJava8Style.java
@@ -13,30 +13,25 @@ public class OnXJava8Style {
String e;
@Foo
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getA() {
return this.a;
}
@Foo
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setB(final String b) {
this.b = b;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setC(@Foo("a") final String c) {
this.c = c;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setD(@Bar(stuff = "b") final String d) {
this.d = d;
}
@Foo("c")
@Bar(stuff = "d")
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getE() {
return this.e;
}
diff --git a/test/transform/resource/after-delombok/SetterAccessLevel.java b/test/transform/resource/after-delombok/SetterAccessLevel.java
index b9f9466b..51a58e8e 100644
--- a/test/transform/resource/after-delombok/SetterAccessLevel.java
+++ b/test/transform/resource/after-delombok/SetterAccessLevel.java
@@ -6,27 +6,22 @@ class SetterAccessLevel {
boolean isPublic;
boolean value;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private void setPrivate(final boolean isPrivate) {
this.isPrivate = isPrivate;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
void setPackage(final boolean isPackage) {
this.isPackage = isPackage;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected void setProtected(final boolean isProtected) {
this.isProtected = isProtected;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setPublic(final boolean isPublic) {
this.isPublic = isPublic;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setValue(final boolean value) {
this.value = value;
}
diff --git a/test/transform/resource/after-delombok/SetterAlreadyExists.java b/test/transform/resource/after-delombok/SetterAlreadyExists.java
index 1ff9fdcc..a62f20da 100644
--- a/test/transform/resource/after-delombok/SetterAlreadyExists.java
+++ b/test/transform/resource/after-delombok/SetterAlreadyExists.java
@@ -23,7 +23,6 @@ class Setter5 {
void setFoo() {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setFoo(final String foo) {
this.foo = foo;
}
@@ -33,7 +32,6 @@ class Setter6 {
void setFoo(String foo, int x) {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setFoo(final String foo) {
this.foo = foo;
}
diff --git a/test/transform/resource/after-delombok/SetterDeprecated.java b/test/transform/resource/after-delombok/SetterDeprecated.java
index 115096be..cc52413b 100644
--- a/test/transform/resource/after-delombok/SetterDeprecated.java
+++ b/test/transform/resource/after-delombok/SetterDeprecated.java
@@ -7,7 +7,6 @@ class SetterDeprecated {
int javadoc;
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setAnnotation(final int annotation) {
this.annotation = annotation;
}
@@ -16,7 +15,6 @@ class SetterDeprecated {
*/
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setJavadoc(final int javadoc) {
this.javadoc = javadoc;
}
diff --git a/test/transform/resource/after-delombok/SetterOnClass.java b/test/transform/resource/after-delombok/SetterOnClass.java
index 9c376d43..f2347bcb 100644
--- a/test/transform/resource/after-delombok/SetterOnClass.java
+++ b/test/transform/resource/after-delombok/SetterOnClass.java
@@ -2,7 +2,6 @@ class SetterOnClass1 {
boolean isNone;
boolean isPublic;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setPublic(final boolean isPublic) {
this.isPublic = isPublic;
}
@@ -12,12 +11,10 @@ class SetterOnClass2 {
boolean isProtected;
boolean isPackage;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected void setProtected(final boolean isProtected) {
this.isProtected = isProtected;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
void setPackage(final boolean isPackage) {
this.isPackage = isPackage;
}
@@ -26,7 +23,6 @@ class SetterOnClass3 {
boolean isNone;
boolean isPackage;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
void setPackage(final boolean isPackage) {
this.isPackage = isPackage;
}
@@ -35,7 +31,6 @@ class SetterOnClass4 {
boolean isNone;
boolean isPrivate;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private void setPrivate(final boolean isPrivate) {
this.isPrivate = isPrivate;
}
@@ -44,7 +39,6 @@ class SetterOnClass5 {
boolean isNone;
boolean isPublic;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setPublic(final boolean isPublic) {
this.isPublic = isPublic;
}
@@ -54,12 +48,10 @@ class SetterOnClass6 {
@lombok.NonNull
String nonNull;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setCouldBeNull(final String couldBeNull) {
this.couldBeNull = couldBeNull;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setNonNull(@lombok.NonNull final String nonNull) {
if (nonNull == null) {
throw new java.lang.NullPointerException("nonNull");
diff --git a/test/transform/resource/after-delombok/SetterOnMethodOnParam.java b/test/transform/resource/after-delombok/SetterOnMethodOnParam.java
index c166f936..555bf698 100644
--- a/test/transform/resource/after-delombok/SetterOnMethodOnParam.java
+++ b/test/transform/resource/after-delombok/SetterOnMethodOnParam.java
@@ -6,21 +6,18 @@ class SetterOnMethodOnParam {
}
@Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setI(final int i) {
this.i = i;
}
@java.lang.Deprecated
@Test
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setJ(@Test final int j) {
this.j = j;
}
@java.lang.Deprecated
@Test
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setK(@Test final int k) {
this.k = k;
}
diff --git a/test/transform/resource/after-delombok/SetterOnStatic.java b/test/transform/resource/after-delombok/SetterOnStatic.java
index a1947b36..7ef68362 100644
--- a/test/transform/resource/after-delombok/SetterOnStatic.java
+++ b/test/transform/resource/after-delombok/SetterOnStatic.java
@@ -2,12 +2,10 @@ class Setter {
static boolean foo;
static int bar;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static void setFoo(final boolean foo) {
Setter.foo = foo;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static void setBar(final int bar) {
Setter.bar = bar;
}
diff --git a/test/transform/resource/after-delombok/SetterPlain.java b/test/transform/resource/after-delombok/SetterPlain.java
index 19acc392..0ec9ca1b 100644
--- a/test/transform/resource/after-delombok/SetterPlain.java
+++ b/test/transform/resource/after-delombok/SetterPlain.java
@@ -2,12 +2,10 @@ class SetterPlain {
int i;
int foo;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setI(final int i) {
this.i = i;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setFoo(final int foo) {
this.foo = foo;
}
diff --git a/test/transform/resource/after-delombok/SetterWithDollar.java b/test/transform/resource/after-delombok/SetterWithDollar.java
index fdcbfe75..8d116e99 100644
--- a/test/transform/resource/after-delombok/SetterWithDollar.java
+++ b/test/transform/resource/after-delombok/SetterWithDollar.java
@@ -3,7 +3,6 @@ class SetterWithDollar1 {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void set$i(final int $i) {
this.$i = $i;
@@ -15,13 +14,11 @@ class SetterWithDollar2 {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void set$i(final int $i) {
this.$i = $i;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setI(final int i) {
this.i = i;
}
diff --git a/test/transform/resource/after-delombok/SimpleTypeResolution.java b/test/transform/resource/after-delombok/SimpleTypeResolution.java
index 1e45bb79..c6e08d70 100644
--- a/test/transform/resource/after-delombok/SimpleTypeResolution.java
+++ b/test/transform/resource/after-delombok/SimpleTypeResolution.java
@@ -5,7 +5,6 @@ class SimpleTypeResolutionFail {
class SimpleTypeResolutionSuccess {
private int x;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
diff --git a/test/transform/resource/after-delombok/SynchronizedPlain.java b/test/transform/resource/after-delombok/SynchronizedPlain.java
index 229d261a..f178aa4e 100644
--- a/test/transform/resource/after-delombok/SynchronizedPlain.java
+++ b/test/transform/resource/after-delombok/SynchronizedPlain.java
@@ -1,6 +1,5 @@
class SynchronizedPlain1 {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private final java.lang.Object $lock = new java.lang.Object[0];
void test() {
synchronized (this.$lock) {
@@ -15,7 +14,6 @@ class SynchronizedPlain1 {
}
class SynchronizedPlain2 {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private static final java.lang.Object $LOCK = new java.lang.Object[0];
static void test() {
synchronized (SynchronizedPlain2.$LOCK) {
diff --git a/test/transform/resource/after-delombok/ToStringConfiguration.java b/test/transform/resource/after-delombok/ToStringConfiguration.java
index 1baabebd..6fa9111e 100644
--- a/test/transform/resource/after-delombok/ToStringConfiguration.java
+++ b/test/transform/resource/after-delombok/ToStringConfiguration.java
@@ -2,12 +2,10 @@ class ToStringConfiguration {
int x;
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ToStringConfiguration(" + this.x + ")";
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
@@ -16,7 +14,6 @@ class ToStringConfiguration2 {
int x;
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ToStringConfiguration2(x=" + this.x + ")";
}
@@ -25,12 +22,10 @@ class ToStringConfiguration3 {
int x;
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ToStringConfiguration3(" + this.getX() + ")";
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
diff --git a/test/transform/resource/after-delombok/ToStringInner.java b/test/transform/resource/after-delombok/ToStringInner.java
index ef14bcde..fe77fcfd 100644
--- a/test/transform/resource/after-delombok/ToStringInner.java
+++ b/test/transform/resource/after-delombok/ToStringInner.java
@@ -5,7 +5,6 @@ class ToStringOuter {
int y;
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ToStringOuter.ToStringInner(y=" + this.y + ")";
}
@@ -14,7 +13,6 @@ class ToStringOuter {
int y;
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ToStringOuter.ToStringStaticInner(y=" + this.y + ")";
}
@@ -24,7 +22,6 @@ class ToStringOuter {
String name;
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ToStringOuter.ToStringMiddle.ToStringMoreInner(name=" + this.name + ")";
}
@@ -33,7 +30,6 @@ class ToStringOuter {
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ToStringOuter(x=" + this.x + ", name=" + this.name + ")";
}
diff --git a/test/transform/resource/after-delombok/ToStringPlain.java b/test/transform/resource/after-delombok/ToStringPlain.java
index bf0ef419..af9daf4f 100644
--- a/test/transform/resource/after-delombok/ToStringPlain.java
+++ b/test/transform/resource/after-delombok/ToStringPlain.java
@@ -3,7 +3,6 @@ class ToString1 {
String name;
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ToString1(x=" + this.x + ", name=" + this.name + ")";
}
@@ -13,7 +12,6 @@ class ToString2 {
String name;
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ToString2(x=" + this.x + ", name=" + this.name + ")";
}
diff --git a/test/transform/resource/after-delombok/Tolerate.java b/test/transform/resource/after-delombok/Tolerate.java
index e56979dc..c3e3d7fd 100644
--- a/test/transform/resource/after-delombok/Tolerate.java
+++ b/test/transform/resource/after-delombok/Tolerate.java
@@ -11,7 +11,6 @@ class Tolerate {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public void setPattern(final Pattern pattern) {
this.pattern = pattern;
@@ -19,7 +18,6 @@ class Tolerate {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Pattern getPattern() {
return this.pattern;
@@ -39,7 +37,6 @@ class Tolerate2 {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Pattern getPattern() {
return this.pattern;
@@ -47,15 +44,12 @@ class Tolerate2 {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Tolerate2 withPattern(final Pattern pattern) {
return this.pattern == pattern ? this : new Tolerate2(pattern);
}
- @java.beans.ConstructorProperties({"pattern"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Tolerate2(final Pattern pattern) {
this.pattern = pattern;
}
diff --git a/test/transform/resource/after-delombok/TrickyTypeResolution.java b/test/transform/resource/after-delombok/TrickyTypeResolution.java
index 6badfbf4..9a5aae16 100644
--- a/test/transform/resource/after-delombok/TrickyTypeResolution.java
+++ b/test/transform/resource/after-delombok/TrickyTypeResolution.java
@@ -14,7 +14,6 @@ class TrickyDoNothing2 {
class TrickySuccess {
int x;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
diff --git a/test/transform/resource/after-delombok/UtilityClass.java b/test/transform/resource/after-delombok/UtilityClass.java
index 32e47557..8d3f4c08 100644
--- a/test/transform/resource/after-delombok/UtilityClass.java
+++ b/test/transform/resource/after-delombok/UtilityClass.java
@@ -7,7 +7,6 @@ final class UtilityClass {
private String innerInnerMember;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private UtilityClass() {
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
}
@@ -17,7 +16,6 @@ class UtilityInner {
static final class InnerInnerInner {
static int member;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private InnerInnerInner() {
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
}
@@ -28,7 +26,6 @@ class UtilityInner {
static final class InsideEnum {
static int member;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private InsideEnum() {
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
}
@@ -38,7 +35,6 @@ class UtilityInner {
final class InsideInterface {
static int member;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private InsideInterface() {
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
}
diff --git a/test/transform/resource/after-delombok/ValueCallSuper.java b/test/transform/resource/after-delombok/ValueCallSuper.java
index e0065885..63a536cd 100644
--- a/test/transform/resource/after-delombok/ValueCallSuper.java
+++ b/test/transform/resource/after-delombok/ValueCallSuper.java
@@ -2,12 +2,10 @@ class ValueParent {
}
final class ValueCallSuper extends ValueParent {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public ValueCallSuper() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof ValueCallSuper)) return false;
@@ -17,22 +15,17 @@ final class ValueCallSuper extends ValueParent {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof ValueCallSuper;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- result = result * PRIME + super.hashCode();
+ int result = super.hashCode();
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ValueCallSuper()";
}
diff --git a/test/transform/resource/after-delombok/ValueExperimental.java b/test/transform/resource/after-delombok/ValueExperimental.java
index 95803228..5846a2d8 100644
--- a/test/transform/resource/after-delombok/ValueExperimental.java
+++ b/test/transform/resource/after-delombok/ValueExperimental.java
@@ -1,11 +1,9 @@
final class ValueExperimental1 {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public ValueExperimental1() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof ValueExperimental1)) return false;
@@ -13,26 +11,22 @@ final class ValueExperimental1 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
int result = 1;
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ValueExperimental1()";
}
}
final class ValueExperimental2 {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public ValueExperimental2() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof ValueExperimental2)) return false;
@@ -40,14 +34,12 @@ final class ValueExperimental2 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
int result = 1;
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ValueExperimental2()";
}
diff --git a/test/transform/resource/after-delombok/ValueExperimentalStarImport.java b/test/transform/resource/after-delombok/ValueExperimentalStarImport.java
index b3bd9db5..cb755b47 100644
--- a/test/transform/resource/after-delombok/ValueExperimentalStarImport.java
+++ b/test/transform/resource/after-delombok/ValueExperimentalStarImport.java
@@ -1,13 +1,11 @@
import lombok.experimental.*;
final class ValueExperimentalStarImport {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public ValueExperimentalStarImport() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof ValueExperimentalStarImport)) return false;
@@ -15,14 +13,12 @@ final class ValueExperimentalStarImport {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
int result = 1;
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ValueExperimentalStarImport()";
}
diff --git a/test/transform/resource/after-delombok/ValuePlain.java b/test/transform/resource/after-delombok/ValuePlain.java
index 056cdacf..cf2c1142 100644
--- a/test/transform/resource/after-delombok/ValuePlain.java
+++ b/test/transform/resource/after-delombok/ValuePlain.java
@@ -1,26 +1,21 @@
final class Value1 {
private final int x;
private final String name;
- @java.beans.ConstructorProperties({"x", "name"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Value1(final int x, final String name) {
this.x = x;
this.name = name;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getName() {
return this.name;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Value1)) return false;
@@ -33,7 +28,6 @@ final class Value1 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -44,7 +38,6 @@ final class Value1 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "Value1(x=" + this.getX() + ", name=" + this.getName() + ")";
}
@@ -52,26 +45,21 @@ final class Value1 {
class Value2 {
public final int x;
private final String name;
- @java.beans.ConstructorProperties({"x", "name"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Value2(final int x, final String name) {
this.x = x;
this.name = name;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public String getName() {
return this.name;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Value2)) return false;
@@ -84,13 +72,11 @@ class Value2 {
return true;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Value2;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -101,7 +87,6 @@ class Value2 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "Value2(x=" + this.getX() + ", name=" + this.getName() + ")";
}
@@ -109,26 +94,21 @@ class Value2 {
final class Value3 {
private int x;
private final int y;
- @java.beans.ConstructorProperties({"x", "y"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Value3(final int x, final int y) {
this.x = x;
this.y = y;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getX() {
return this.x;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int getY() {
return this.y;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Value3)) return false;
@@ -139,7 +119,6 @@ final class Value3 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
final int PRIME = 59;
int result = 1;
@@ -149,7 +128,6 @@ final class Value3 {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "Value3(x=" + this.getX() + ", y=" + this.getY() + ")";
}
diff --git a/test/transform/resource/after-delombok/ValueStaticField.java b/test/transform/resource/after-delombok/ValueStaticField.java
index 7725d1ac..2b489a1a 100644
--- a/test/transform/resource/after-delombok/ValueStaticField.java
+++ b/test/transform/resource/after-delombok/ValueStaticField.java
@@ -2,12 +2,10 @@ final class ValueStaticField {
static int x;
static String PASSWORD = "Ken sent me";
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public ValueStaticField() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof ValueStaticField)) return false;
@@ -15,14 +13,12 @@ final class ValueStaticField {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public int hashCode() {
int result = 1;
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "ValueStaticField()";
}
diff --git a/test/transform/resource/after-delombok/WitherAccessLevel.java b/test/transform/resource/after-delombok/WitherAccessLevel.java
index 8cf98cec..c687d645 100644
--- a/test/transform/resource/after-delombok/WitherAccessLevel.java
+++ b/test/transform/resource/after-delombok/WitherAccessLevel.java
@@ -8,27 +8,22 @@ class WitherAccessLevel {
WitherAccessLevel(boolean isNone, boolean isPrivate, boolean isPackage, boolean isProtected, boolean isPublic, boolean value) {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private WitherAccessLevel withPrivate(final boolean isPrivate) {
return this.isPrivate == isPrivate ? this : new WitherAccessLevel(this.isNone, isPrivate, this.isPackage, this.isProtected, this.isPublic, this.value);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
WitherAccessLevel withPackage(final boolean isPackage) {
return this.isPackage == isPackage ? this : new WitherAccessLevel(this.isNone, this.isPrivate, isPackage, this.isProtected, this.isPublic, this.value);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected WitherAccessLevel withProtected(final boolean isProtected) {
return this.isProtected == isProtected ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, isProtected, this.isPublic, this.value);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public WitherAccessLevel withPublic(final boolean isPublic) {
return this.isPublic == isPublic ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, this.isProtected, isPublic, this.value);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public WitherAccessLevel withValue(final boolean value) {
return this.value == value ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, this.isProtected, this.isPublic, value);
}
diff --git a/test/transform/resource/after-delombok/WitherAlreadyExists.java b/test/transform/resource/after-delombok/WitherAlreadyExists.java
index 8f51af48..d609bc7b 100644
--- a/test/transform/resource/after-delombok/WitherAlreadyExists.java
+++ b/test/transform/resource/after-delombok/WitherAlreadyExists.java
@@ -33,7 +33,6 @@ class Wither5 {
Wither5(String foo) {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Wither5 withFoo(final String foo) {
return this.foo == foo ? this : new Wither5(foo);
}
@@ -45,7 +44,6 @@ class Wither6 {
Wither6(String foo) {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public Wither6 withFoo(final String foo) {
return this.foo == foo ? this : new Wither6(foo);
}
diff --git a/test/transform/resource/after-delombok/WitherAndAllArgsConstructor.java b/test/transform/resource/after-delombok/WitherAndAllArgsConstructor.java
index 0d0d6525..ff4fe3e2 100644
--- a/test/transform/resource/after-delombok/WitherAndAllArgsConstructor.java
+++ b/test/transform/resource/after-delombok/WitherAndAllArgsConstructor.java
@@ -4,9 +4,7 @@ class WitherAndAllArgsConstructor<T, J extends T, L extends java.lang.Number> {
final int x = 10;
int y = 20;
final int z;
- @java.beans.ConstructorProperties({"test", "test2", "y", "z"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public WitherAndAllArgsConstructor(final J test, final java.util.List<L> test2, final int y, final int z) {
this.test = test;
this.test2 = test2;
@@ -14,12 +12,10 @@ class WitherAndAllArgsConstructor<T, J extends T, L extends java.lang.Number> {
this.z = z;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public WitherAndAllArgsConstructor<T, J, L> withTest(final J test) {
return this.test == test ? this : new WitherAndAllArgsConstructor<T, J, L>(test, this.test2, this.y, this.z);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public WitherAndAllArgsConstructor<T, J, L> withTest2(final java.util.List<L> test2) {
return this.test2 == test2 ? this : new WitherAndAllArgsConstructor<T, J, L>(this.test, test2, this.y, this.z);
}
diff --git a/test/transform/resource/after-delombok/WitherDeprecated.java b/test/transform/resource/after-delombok/WitherDeprecated.java
index 409e773f..b342a861 100644
--- a/test/transform/resource/after-delombok/WitherDeprecated.java
+++ b/test/transform/resource/after-delombok/WitherDeprecated.java
@@ -9,7 +9,6 @@ class WitherDeprecated {
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public WitherDeprecated withAnnotation(final int annotation) {
return this.annotation == annotation ? this : new WitherDeprecated(annotation, this.javadoc);
}
@@ -18,7 +17,6 @@ class WitherDeprecated {
*/
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public WitherDeprecated withJavadoc(final int javadoc) {
return this.javadoc == javadoc ? this : new WitherDeprecated(this.annotation, javadoc);
}
diff --git a/test/transform/resource/after-delombok/WitherOnClass.java b/test/transform/resource/after-delombok/WitherOnClass.java
index ae352d33..45d0c4b5 100644
--- a/test/transform/resource/after-delombok/WitherOnClass.java
+++ b/test/transform/resource/after-delombok/WitherOnClass.java
@@ -4,7 +4,6 @@ class WitherOnClass1 {
WitherOnClass1(boolean isNone, boolean isPublic) {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public WitherOnClass1 withPublic(final boolean isPublic) {
return this.isPublic == isPublic ? this : new WitherOnClass1(this.isNone, isPublic);
}
@@ -16,12 +15,10 @@ class WitherOnClass2 {
WitherOnClass2(boolean isNone, boolean isProtected, boolean isPackage) {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
protected WitherOnClass2 withProtected(final boolean isProtected) {
return this.isProtected == isProtected ? this : new WitherOnClass2(this.isNone, isProtected, this.isPackage);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
WitherOnClass2 withPackage(final boolean isPackage) {
return this.isPackage == isPackage ? this : new WitherOnClass2(this.isNone, this.isProtected, isPackage);
}
@@ -33,12 +30,10 @@ class WitherOnClass3 {
WitherOnClass3(String couldBeNull, String nonNull) {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public WitherOnClass3 withCouldBeNull(final String couldBeNull) {
return this.couldBeNull == couldBeNull ? this : new WitherOnClass3(couldBeNull, this.nonNull);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public WitherOnClass3 withNonNull(@lombok.NonNull final String nonNull) {
if (nonNull == null) {
throw new java.lang.NullPointerException("nonNull");
@@ -53,7 +48,6 @@ class WitherOnClass4 {
this.fY = y;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public WitherOnClass4 withY(final int fY) {
return this.fY == fY ? this : new WitherOnClass4(fY);
}
diff --git a/test/transform/resource/after-delombok/WitherPlain.java b/test/transform/resource/after-delombok/WitherPlain.java
index 548ff299..a2e947bd 100644
--- a/test/transform/resource/after-delombok/WitherPlain.java
+++ b/test/transform/resource/after-delombok/WitherPlain.java
@@ -6,12 +6,10 @@ class WitherPlain {
this.foo = foo;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public WitherPlain withI(final int i) {
return this.i == i ? this : new WitherPlain(i, this.foo);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public WitherPlain withFoo(final int foo) {
return this.foo == foo ? this : new WitherPlain(this.i, foo);
}
diff --git a/test/transform/resource/after-delombok/WitherWithAbstract.java b/test/transform/resource/after-delombok/WitherWithAbstract.java
index 7cbb1309..f9178e99 100644
--- a/test/transform/resource/after-delombok/WitherWithAbstract.java
+++ b/test/transform/resource/after-delombok/WitherWithAbstract.java
@@ -1,6 +1,5 @@
abstract class WitherWithAbstract {
String foo;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public abstract WitherWithAbstract withFoo(final String foo);
}
diff --git a/test/transform/resource/after-delombok/WitherWithGenerics.java b/test/transform/resource/after-delombok/WitherWithGenerics.java
index fd466559..98bbd04d 100644
--- a/test/transform/resource/after-delombok/WitherWithGenerics.java
+++ b/test/transform/resource/after-delombok/WitherWithGenerics.java
@@ -6,17 +6,14 @@ class WitherWithGenerics<T, J extends T, L extends java.lang.Number> {
public WitherWithGenerics(J test, java.util.List<L> test2, java.util.List<? extends L> test3) {
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public WitherWithGenerics<T, J, L> withTest(final J test) {
return this.test == test ? this : new WitherWithGenerics<T, J, L>(test, this.test2, this.test3);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public WitherWithGenerics<T, J, L> withTest2(final java.util.List<L> test2) {
return this.test2 == test2 ? this : new WitherWithGenerics<T, J, L>(this.test, test2, this.test3);
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public WitherWithGenerics<T, J, L> withTest3(final java.util.List<? extends L> test3) {
return this.test3 == test3 ? this : new WitherWithGenerics<T, J, L>(this.test, this.test2, test3);
}