From 624c8a5a52d14ba1a6b690809f9ada15f71e15f5 Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Mon, 21 Dec 2020 17:07:22 +0100 Subject: [fixes #2682] Fix NPE, always add Javadoc return statement --- test/transform/resource/after-ecj/Accessors.java | 12 ++++++++++++ .../resource/after-ecj/AccessorsConfiguration.java | 3 +++ .../resource/after-ecj/BuilderComplex.java | 12 ++++++++++++ .../after-ecj/BuilderConstructorJavadoc.java | 6 ++++++ .../resource/after-ecj/BuilderCustomName.java | 3 +++ .../resource/after-ecj/BuilderDefaults.java | 9 +++++++++ .../resource/after-ecj/BuilderDefaultsGenerics.java | 9 +++++++++ .../resource/after-ecj/BuilderDefaultsWarnings.java | 6 ++++++ .../resource/after-ecj/BuilderGenericMethod.java | 6 ++++++ .../resource/after-ecj/BuilderInstanceMethod.java | 12 ++++++++++++ .../transform/resource/after-ecj/BuilderSimple.java | 6 ++++++ .../after-ecj/BuilderSimpleWithSetterPrefix.java | 3 +++ .../resource/after-ecj/BuilderTypeAnnos.java | 3 +++ .../after-ecj/BuilderTypeAnnosWithSetterPrefix.java | 3 +++ .../resource/after-ecj/BuilderWithAccessors.java | 12 ++++++++++++ .../resource/after-ecj/BuilderWithBadNames.java | 6 ++++++ .../resource/after-ecj/BuilderWithDeprecated.java | 3 +++ .../after-ecj/BuilderWithDeprecatedAnnOnly.java | 3 +++ .../after-ecj/BuilderWithExistingBuilderClass.java | 6 ++++++ ...derWithExistingBuilderClassWithSetterPrefix.java | 6 ++++++ .../after-ecj/BuilderWithNoBuilderMethod.java | 3 +++ .../resource/after-ecj/BuilderWithNonNull.java | 3 +++ .../BuilderWithNonNullWithSetterPrefix.java | 3 +++ .../after-ecj/BuilderWithRecursiveGenerics.java | 6 ++++++ .../resource/after-ecj/BuilderWithToBuilder.java | 21 +++++++++++++++++++++ .../resource/after-ecj/BuilderWithTolerate.java | 3 +++ .../resource/after-ecj/CheckerFrameworkBasic.java | 6 ++++++ .../resource/after-ecj/CheckerFrameworkBuilder.java | 9 +++++++++ .../after-ecj/CheckerFrameworkSuperBuilder.java | 15 +++++++++++++++ .../after-ecj/ConstructorsWithBuilderDefaults.java | 6 ++++++ .../after-ecj/ConstructorsWithBuilderDefaults2.java | 9 +++++++++ .../after-ecj/I2335_BuilderMultipleObtainVia.java | 6 ++++++ .../resource/after-ecj/JacksonJsonProperty.java | 3 +++ .../after-ecj/JacksonizedBuilderComplex.java | 12 ++++++++++++ .../after-ecj/JacksonizedBuilderSimple.java | 6 ++++++ .../after-ecj/JacksonizedSuperBuilderSimple.java | 3 +++ .../JacksonizedSuperBuilderWithJsonDeserialize.java | 3 +++ test/transform/resource/after-ecj/NullLibrary1.java | 3 +++ test/transform/resource/after-ecj/NullLibrary2.java | 3 +++ .../resource/after-ecj/SuperBuilderAbstract.java | 9 +++++++++ .../after-ecj/SuperBuilderAbstractToBuilder.java | 9 +++++++++ .../resource/after-ecj/SuperBuilderBasic.java | 6 ++++++ .../after-ecj/SuperBuilderBasicToBuilder.java | 15 +++++++++++++++ .../resource/after-ecj/SuperBuilderCustomized.java | 3 +++ .../resource/after-ecj/SuperBuilderNameClashes.java | 3 +++ .../SuperBuilderWithCustomBuilderMethod.java | 6 ++++++ .../after-ecj/SuperBuilderWithDefaults.java | 9 +++++++++ .../after-ecj/SuperBuilderWithGenerics.java | 6 ++++++ .../after-ecj/SuperBuilderWithGenerics2.java | 6 ++++++ .../after-ecj/SuperBuilderWithGenerics3.java | 6 ++++++ .../SuperBuilderWithGenericsAndToBuilder.java | 6 ++++++ .../resource/after-ecj/SuperBuilderWithNonNull.java | 6 ++++++ .../after-ecj/SuperBuilderWithPrefixes.java | 6 ++++++ .../after-ecj/SuperBuilderWithSetterPrefix.java | 15 +++++++++++++++ test/transform/resource/after-ecj/Tolerate.java | 3 +++ .../resource/after-ecj/WithAlreadyExists.java | 6 ++++++ .../after-ecj/WithAndAllArgsConstructor.java | 6 ++++++ .../resource/after-ecj/WithMethodAbstract.java | 3 +++ .../after-ecj/WithMethodMarkedDeprecated.java | 3 +++ .../WithMethodMarkedDeprecatedAnnOnly.java | 3 +++ test/transform/resource/after-ecj/WithNested.java | 3 +++ test/transform/resource/after-ecj/WithOnClass.java | 18 ++++++++++++++++++ test/transform/resource/after-ecj/WithPlain.java | 6 ++++++ .../resource/after-ecj/WithWithGenerics.java | 9 +++++++++ .../resource/after-ecj/WithWithTypeAnnos.java | 3 +++ .../resource/after-ecj/WitherAccessLevel.java | 15 +++++++++++++++ .../resource/after-ecj/WitherLegacyStar.java | 3 +++ 67 files changed, 444 insertions(+) (limited to 'test/transform/resource/after-ecj') diff --git a/test/transform/resource/after-ecj/Accessors.java b/test/transform/resource/after-ecj/Accessors.java index 8ac92e6e..cdc7b146 100644 --- a/test/transform/resource/after-ecj/Accessors.java +++ b/test/transform/resource/after-ecj/Accessors.java @@ -6,6 +6,9 @@ class AccessorsFluent { public @java.lang.SuppressWarnings("all") String fieldName() { return this.fieldName; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") AccessorsFluent fieldName(final String fieldName) { this.fieldName = fieldName; return this; @@ -17,6 +20,9 @@ class AccessorsFluent { AccessorsFluentOnClass() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") AccessorsFluentOnClass fieldName(final String fieldName) { this.fieldName = fieldName; return this; @@ -33,6 +39,9 @@ class AccessorsChain { AccessorsChain() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") AccessorsChain setRunning(final boolean isRunning) { this.isRunning = isRunning; return this; @@ -102,6 +111,9 @@ class AccessorsFluentGenerics { AccessorsFluentGenerics() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") AccessorsFluentGenerics name(final String name) { this.name = name; return this; diff --git a/test/transform/resource/after-ecj/AccessorsConfiguration.java b/test/transform/resource/after-ecj/AccessorsConfiguration.java index 6678e020..a844763c 100644 --- a/test/transform/resource/after-ecj/AccessorsConfiguration.java +++ b/test/transform/resource/after-ecj/AccessorsConfiguration.java @@ -24,6 +24,9 @@ class AccessorsConfiguration { AccessorsConfiguration3() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") AccessorsConfiguration3 setFieldName(final String fFieldName) { this.fFieldName = fFieldName; return this; diff --git a/test/transform/resource/after-ecj/BuilderComplex.java b/test/transform/resource/after-ecj/BuilderComplex.java index 6a28e114..ce6b0fd4 100644 --- a/test/transform/resource/after-ecj/BuilderComplex.java +++ b/test/transform/resource/after-ecj/BuilderComplex.java @@ -9,18 +9,30 @@ class BuilderComplex { @java.lang.SuppressWarnings("all") TestVoidName() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderComplex.TestVoidName number(final T number) { this.number = number; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderComplex.TestVoidName arg2(final int arg2) { this.arg2 = arg2; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderComplex.TestVoidName arg3(final String arg3) { this.arg3 = arg3; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderComplex.TestVoidName selfRef(final BuilderComplex selfRef) { this.selfRef = selfRef; return this; diff --git a/test/transform/resource/after-ecj/BuilderConstructorJavadoc.java b/test/transform/resource/after-ecj/BuilderConstructorJavadoc.java index bb3916e8..29b6373b 100644 --- a/test/transform/resource/after-ecj/BuilderConstructorJavadoc.java +++ b/test/transform/resource/after-ecj/BuilderConstructorJavadoc.java @@ -16,10 +16,16 @@ class BuilderConstructorJavadoc { @java.lang.SuppressWarnings("all") BuilderConstructorJavadocBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderConstructorJavadoc.BuilderConstructorJavadocBuilder basic(final int basic) { this.basic = basic; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderConstructorJavadoc.BuilderConstructorJavadocBuilder multiline(final int multiline) { this.multiline = multiline; return this; diff --git a/test/transform/resource/after-ecj/BuilderCustomName.java b/test/transform/resource/after-ecj/BuilderCustomName.java index ee44cc75..652bdf16 100644 --- a/test/transform/resource/after-ecj/BuilderCustomName.java +++ b/test/transform/resource/after-ecj/BuilderCustomName.java @@ -7,6 +7,9 @@ import java.util.List; } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field(final int field) { this.field = field; return self(); diff --git a/test/transform/resource/after-ecj/BuilderDefaults.java b/test/transform/resource/after-ecj/BuilderDefaults.java index c9be219d..37a00cbf 100644 --- a/test/transform/resource/after-ecj/BuilderDefaults.java +++ b/test/transform/resource/after-ecj/BuilderDefaults.java @@ -10,15 +10,24 @@ public final @Value @Builder class BuilderDefaults { @java.lang.SuppressWarnings("all") BuilderDefaultsBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderDefaults.BuilderDefaultsBuilder x(final int x) { this.x$value = x; x$set = true; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderDefaults.BuilderDefaultsBuilder name(final String name) { this.name = name; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderDefaults.BuilderDefaultsBuilder z(final long z) { this.z$value = z; z$set = true; diff --git a/test/transform/resource/after-ecj/BuilderDefaultsGenerics.java b/test/transform/resource/after-ecj/BuilderDefaultsGenerics.java index 0dc06144..4f9a3cfd 100644 --- a/test/transform/resource/after-ecj/BuilderDefaultsGenerics.java +++ b/test/transform/resource/after-ecj/BuilderDefaultsGenerics.java @@ -11,16 +11,25 @@ public @Builder class BuilderDefaultsGenerics callable(final java.util.concurrent.Callable callable) { this.callable$value = callable; callable$set = true; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderDefaultsGenerics.BuilderDefaultsGenericsBuilder tee(final T tee) { this.tee$value = tee; tee$set = true; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderDefaultsGenerics.BuilderDefaultsGenericsBuilder arrr(final R arrr) { this.arrr$value = arrr; arrr$set = true; diff --git a/test/transform/resource/after-ecj/BuilderDefaultsWarnings.java b/test/transform/resource/after-ecj/BuilderDefaultsWarnings.java index bc773df3..16caf39e 100644 --- a/test/transform/resource/after-ecj/BuilderDefaultsWarnings.java +++ b/test/transform/resource/after-ecj/BuilderDefaultsWarnings.java @@ -8,10 +8,16 @@ public @Builder class BuilderDefaultsWarnings { @java.lang.SuppressWarnings("all") BuilderDefaultsWarningsBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderDefaultsWarnings.BuilderDefaultsWarningsBuilder x(final long x) { this.x = x; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderDefaultsWarnings.BuilderDefaultsWarningsBuilder z(final int z) { this.z = z; return this; diff --git a/test/transform/resource/after-ecj/BuilderGenericMethod.java b/test/transform/resource/after-ecj/BuilderGenericMethod.java index 442d74dd..be35cf9e 100644 --- a/test/transform/resource/after-ecj/BuilderGenericMethod.java +++ b/test/transform/resource/after-ecj/BuilderGenericMethod.java @@ -8,10 +8,16 @@ class BuilderGenericMethod { @java.lang.SuppressWarnings("all") MapBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderGenericMethod.MapBuilder a(final int a) { this.a = a; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderGenericMethod.MapBuilder b(final long b) { this.b = b; return this; diff --git a/test/transform/resource/after-ecj/BuilderInstanceMethod.java b/test/transform/resource/after-ecj/BuilderInstanceMethod.java index e0bf16fd..33502ca9 100644 --- a/test/transform/resource/after-ecj/BuilderInstanceMethod.java +++ b/test/transform/resource/after-ecj/BuilderInstanceMethod.java @@ -8,18 +8,30 @@ class BuilderInstanceMethod { @java.lang.SuppressWarnings("all") StringBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderInstanceMethod.StringBuilder show(final int show) { this.show = show; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderInstanceMethod.StringBuilder yes(final int yes) { this.yes = yes; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderInstanceMethod.StringBuilder also(final List also) { this.also = also; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderInstanceMethod.StringBuilder $andMe(final int $andMe) { this.$andMe = $andMe; return this; diff --git a/test/transform/resource/after-ecj/BuilderSimple.java b/test/transform/resource/after-ecj/BuilderSimple.java index 36804792..a991545e 100644 --- a/test/transform/resource/after-ecj/BuilderSimple.java +++ b/test/transform/resource/after-ecj/BuilderSimple.java @@ -6,10 +6,16 @@ import java.util.List; @java.lang.SuppressWarnings("all") BuilderSimpleBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderSimple.BuilderSimpleBuilder yes(final int yes) { this.yes = yes; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderSimple.BuilderSimpleBuilder also(final List also) { this.also = also; return this; diff --git a/test/transform/resource/after-ecj/BuilderSimpleWithSetterPrefix.java b/test/transform/resource/after-ecj/BuilderSimpleWithSetterPrefix.java index bcb3a4f5..51077a91 100644 --- a/test/transform/resource/after-ecj/BuilderSimpleWithSetterPrefix.java +++ b/test/transform/resource/after-ecj/BuilderSimpleWithSetterPrefix.java @@ -5,6 +5,9 @@ import java.util.List; @java.lang.SuppressWarnings("all") BuilderSimpleWithSetterPrefixBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderSimpleWithSetterPrefix.BuilderSimpleWithSetterPrefixBuilder withUnprefixed(final int unprefixed) { this.unprefixed = unprefixed; return this; diff --git a/test/transform/resource/after-ecj/BuilderTypeAnnos.java b/test/transform/resource/after-ecj/BuilderTypeAnnos.java index 0037b435..cae7f2b4 100644 --- a/test/transform/resource/after-ecj/BuilderTypeAnnos.java +++ b/test/transform/resource/after-ecj/BuilderTypeAnnos.java @@ -11,6 +11,9 @@ import java.util.List; @java.lang.SuppressWarnings("all") BuilderTypeAnnosBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderTypeAnnos.BuilderTypeAnnosBuilder foo(final @TA List foo) { this.foo = foo; return this; diff --git a/test/transform/resource/after-ecj/BuilderTypeAnnosWithSetterPrefix.java b/test/transform/resource/after-ecj/BuilderTypeAnnosWithSetterPrefix.java index 2ca07414..a3e27985 100644 --- a/test/transform/resource/after-ecj/BuilderTypeAnnosWithSetterPrefix.java +++ b/test/transform/resource/after-ecj/BuilderTypeAnnosWithSetterPrefix.java @@ -11,6 +11,9 @@ import java.util.List; @java.lang.SuppressWarnings("all") BuilderTypeAnnosWithSetterPrefixBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderTypeAnnosWithSetterPrefix.BuilderTypeAnnosWithSetterPrefixBuilder withFoo(final @TA List foo) { this.foo = foo; return this; diff --git a/test/transform/resource/after-ecj/BuilderWithAccessors.java b/test/transform/resource/after-ecj/BuilderWithAccessors.java index 7b666077..2d9f80d5 100644 --- a/test/transform/resource/after-ecj/BuilderWithAccessors.java +++ b/test/transform/resource/after-ecj/BuilderWithAccessors.java @@ -7,18 +7,30 @@ @java.lang.SuppressWarnings("all") BuilderWithAccessorsBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithAccessors.BuilderWithAccessorsBuilder plower(final int plower) { this.plower = plower; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithAccessors.BuilderWithAccessorsBuilder upper(final int upper) { this.upper = upper; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithAccessors.BuilderWithAccessorsBuilder foo(final int foo) { this.foo = foo; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithAccessors.BuilderWithAccessorsBuilder _bar(final int _bar) { this._bar = _bar; return this; diff --git a/test/transform/resource/after-ecj/BuilderWithBadNames.java b/test/transform/resource/after-ecj/BuilderWithBadNames.java index 9285021d..c0366e14 100644 --- a/test/transform/resource/after-ecj/BuilderWithBadNames.java +++ b/test/transform/resource/after-ecj/BuilderWithBadNames.java @@ -5,10 +5,16 @@ public @lombok.Builder class BuilderWithBadNames { @java.lang.SuppressWarnings("all") BuilderWithBadNamesBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithBadNames.BuilderWithBadNamesBuilder build(final String build) { this.build = build; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithBadNames.BuilderWithBadNamesBuilder toString(final String toString) { this.toString = toString; return this; diff --git a/test/transform/resource/after-ecj/BuilderWithDeprecated.java b/test/transform/resource/after-ecj/BuilderWithDeprecated.java index 65326a66..7e484b5d 100644 --- a/test/transform/resource/after-ecj/BuilderWithDeprecated.java +++ b/test/transform/resource/after-ecj/BuilderWithDeprecated.java @@ -18,6 +18,9 @@ public @Builder class BuilderWithDeprecated { this.dep1 = dep1; return this; } + /** + * @return {@code this}. + */ public @java.lang.Deprecated @java.lang.SuppressWarnings("all") BuilderWithDeprecated.BuilderWithDeprecatedBuilder dep2(final int dep2) { this.dep2 = dep2; return this; diff --git a/test/transform/resource/after-ecj/BuilderWithDeprecatedAnnOnly.java b/test/transform/resource/after-ecj/BuilderWithDeprecatedAnnOnly.java index d25dacc1..2c563387 100644 --- a/test/transform/resource/after-ecj/BuilderWithDeprecatedAnnOnly.java +++ b/test/transform/resource/after-ecj/BuilderWithDeprecatedAnnOnly.java @@ -9,6 +9,9 @@ public @Builder class BuilderWithDeprecatedAnnOnly { @java.lang.SuppressWarnings("all") BuilderWithDeprecatedAnnOnlyBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.Deprecated @java.lang.SuppressWarnings("all") BuilderWithDeprecatedAnnOnly.BuilderWithDeprecatedAnnOnlyBuilder dep1(final int dep1) { this.dep1 = dep1; return this; diff --git a/test/transform/resource/after-ecj/BuilderWithExistingBuilderClass.java b/test/transform/resource/after-ecj/BuilderWithExistingBuilderClass.java index ea7171f0..b8c716a7 100644 --- a/test/transform/resource/after-ecj/BuilderWithExistingBuilderClass.java +++ b/test/transform/resource/after-ecj/BuilderWithExistingBuilderClass.java @@ -9,10 +9,16 @@ class BuilderWithExistingBuilderClass { @java.lang.SuppressWarnings("all") BuilderWithExistingBuilderClassBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithExistingBuilderClass.BuilderWithExistingBuilderClassBuilder arg1(final Z arg1) { this.arg1 = arg1; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithExistingBuilderClass.BuilderWithExistingBuilderClassBuilder arg3(final String arg3) { this.arg3 = arg3; return this; diff --git a/test/transform/resource/after-ecj/BuilderWithExistingBuilderClassWithSetterPrefix.java b/test/transform/resource/after-ecj/BuilderWithExistingBuilderClassWithSetterPrefix.java index 4b8a5ff4..f3619019 100644 --- a/test/transform/resource/after-ecj/BuilderWithExistingBuilderClassWithSetterPrefix.java +++ b/test/transform/resource/after-ecj/BuilderWithExistingBuilderClassWithSetterPrefix.java @@ -9,10 +9,16 @@ class BuilderWithExistingBuilderClassWithSetterPrefix { @java.lang.SuppressWarnings("all") BuilderWithExistingBuilderClassWithSetterPrefixBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithExistingBuilderClassWithSetterPrefix.BuilderWithExistingBuilderClassWithSetterPrefixBuilder withArg1(final Z arg1) { this.arg1 = arg1; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithExistingBuilderClassWithSetterPrefix.BuilderWithExistingBuilderClassWithSetterPrefixBuilder withArg3(final String arg3) { this.arg3 = arg3; return this; diff --git a/test/transform/resource/after-ecj/BuilderWithNoBuilderMethod.java b/test/transform/resource/after-ecj/BuilderWithNoBuilderMethod.java index 8ad9b56e..d5cdf765 100644 --- a/test/transform/resource/after-ecj/BuilderWithNoBuilderMethod.java +++ b/test/transform/resource/after-ecj/BuilderWithNoBuilderMethod.java @@ -5,6 +5,9 @@ import lombok.Builder; @java.lang.SuppressWarnings("all") BuilderWithNoBuilderMethodBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithNoBuilderMethod.BuilderWithNoBuilderMethodBuilder a(final String a) { this.a = a; return this; diff --git a/test/transform/resource/after-ecj/BuilderWithNonNull.java b/test/transform/resource/after-ecj/BuilderWithNonNull.java index 49fd863b..eb041fae 100644 --- a/test/transform/resource/after-ecj/BuilderWithNonNull.java +++ b/test/transform/resource/after-ecj/BuilderWithNonNull.java @@ -4,6 +4,9 @@ @java.lang.SuppressWarnings("all") BuilderWithNonNullBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithNonNull.BuilderWithNonNullBuilder id(final @lombok.NonNull String id) { if ((id == null)) { diff --git a/test/transform/resource/after-ecj/BuilderWithNonNullWithSetterPrefix.java b/test/transform/resource/after-ecj/BuilderWithNonNullWithSetterPrefix.java index 0ae45a67..dc43f9a9 100644 --- a/test/transform/resource/after-ecj/BuilderWithNonNullWithSetterPrefix.java +++ b/test/transform/resource/after-ecj/BuilderWithNonNullWithSetterPrefix.java @@ -4,6 +4,9 @@ @java.lang.SuppressWarnings("all") BuilderWithNonNullWithSetterPrefixBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithNonNullWithSetterPrefix.BuilderWithNonNullWithSetterPrefixBuilder withId(final @lombok.NonNull String id) { if ((id == null)) { diff --git a/test/transform/resource/after-ecj/BuilderWithRecursiveGenerics.java b/test/transform/resource/after-ecj/BuilderWithRecursiveGenerics.java index a004ff98..e42b9e5f 100644 --- a/test/transform/resource/after-ecj/BuilderWithRecursiveGenerics.java +++ b/test/transform/resource/after-ecj/BuilderWithRecursiveGenerics.java @@ -11,10 +11,16 @@ public class BuilderWithRecursiveGenerics { @java.lang.SuppressWarnings("all") TestBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithRecursiveGenerics.Test.TestBuilder foo(final Foo foo) { this.foo = foo; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithRecursiveGenerics.Test.TestBuilder bar(final Bar bar) { this.bar = bar; return this; diff --git a/test/transform/resource/after-ecj/BuilderWithToBuilder.java b/test/transform/resource/after-ecj/BuilderWithToBuilder.java index 857caa17..0ba3e11a 100644 --- a/test/transform/resource/after-ecj/BuilderWithToBuilder.java +++ b/test/transform/resource/after-ecj/BuilderWithToBuilder.java @@ -9,14 +9,23 @@ import lombok.Builder; @java.lang.SuppressWarnings("all") BuilderWithToBuilderBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithToBuilder.BuilderWithToBuilderBuilder one(final String one) { this.one = one; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithToBuilder.BuilderWithToBuilderBuilder two(final String two) { this.two = two; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithToBuilder.BuilderWithToBuilderBuilder foo(final T foo) { this.foo = foo; return this; @@ -93,14 +102,23 @@ import lombok.Builder; @java.lang.SuppressWarnings("all") ConstructorWithToBuilderBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") ConstructorWithToBuilder.ConstructorWithToBuilderBuilder mOne(final String mOne) { this.mOne = mOne; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") ConstructorWithToBuilder.ConstructorWithToBuilderBuilder baz(final T baz) { this.baz = baz; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") ConstructorWithToBuilder.ConstructorWithToBuilderBuilder bars(final com.google.common.collect.ImmutableList bars) { this.bars = bars; return this; @@ -132,6 +150,9 @@ class StaticMethodWithToBuilder { @java.lang.SuppressWarnings("all") StaticMethodWithToBuilderBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") StaticMethodWithToBuilder.StaticMethodWithToBuilderBuilder foo(final T foo) { this.foo = foo; return this; diff --git a/test/transform/resource/after-ecj/BuilderWithTolerate.java b/test/transform/resource/after-ecj/BuilderWithTolerate.java index 79de7869..8b6fbb53 100644 --- a/test/transform/resource/after-ecj/BuilderWithTolerate.java +++ b/test/transform/resource/after-ecj/BuilderWithTolerate.java @@ -9,6 +9,9 @@ public @Builder class BuilderWithTolerate { @java.lang.SuppressWarnings("all") BuilderWithTolerateBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") BuilderWithTolerate.BuilderWithTolerateBuilder value(final int value) { this.value = value; return this; diff --git a/test/transform/resource/after-ecj/CheckerFrameworkBasic.java b/test/transform/resource/after-ecj/CheckerFrameworkBasic.java index 5411c2a4..87466c7d 100644 --- a/test/transform/resource/after-ecj/CheckerFrameworkBasic.java +++ b/test/transform/resource/after-ecj/CheckerFrameworkBasic.java @@ -6,6 +6,9 @@ import lombok.With; private final @With int x; private final int y; private int z; + /** + * @return {@code this}. + */ public @org.checkerframework.dataflow.qual.SideEffectFree @java.lang.SuppressWarnings("all") CheckerFrameworkBasic withX(final int x) { return ((this.x == x) ? this : new CheckerFrameworkBasic(x, this.y, this.z)); } @@ -18,6 +21,9 @@ import lombok.With; public @org.checkerframework.dataflow.qual.SideEffectFree @java.lang.SuppressWarnings("all") int getZ() { return this.z; } + /** + * @return {@code this}. + */ public @org.checkerframework.common.returnsreceiver.qual.This @java.lang.SuppressWarnings("all") CheckerFrameworkBasic setZ(final int z) { this.z = z; return this; diff --git a/test/transform/resource/after-ecj/CheckerFrameworkBuilder.java b/test/transform/resource/after-ecj/CheckerFrameworkBuilder.java index 9a15cde8..d5ad0991 100644 --- a/test/transform/resource/after-ecj/CheckerFrameworkBuilder.java +++ b/test/transform/resource/after-ecj/CheckerFrameworkBuilder.java @@ -11,15 +11,24 @@ import lombok.Singular; @java.lang.SuppressWarnings("all") CheckerFrameworkBuilderBuilder() { super(); } + /** + * @return {@code this}. + */ public @org.checkerframework.common.returnsreceiver.qual.This @java.lang.SuppressWarnings("all") CheckerFrameworkBuilder.CheckerFrameworkBuilderBuilder x(CheckerFrameworkBuilder.@org.checkerframework.checker.calledmethods.qual.NotCalledMethods("x") CheckerFrameworkBuilderBuilder this, final int x) { this.x$value = x; x$set = true; return this; } + /** + * @return {@code this}. + */ public @org.checkerframework.common.returnsreceiver.qual.This @java.lang.SuppressWarnings("all") CheckerFrameworkBuilder.CheckerFrameworkBuilderBuilder y(CheckerFrameworkBuilder.@org.checkerframework.checker.calledmethods.qual.NotCalledMethods("y") CheckerFrameworkBuilderBuilder this, final int y) { this.y = y; return this; } + /** + * @return {@code this}. + */ public @org.checkerframework.common.returnsreceiver.qual.This @java.lang.SuppressWarnings("all") CheckerFrameworkBuilder.CheckerFrameworkBuilderBuilder z(CheckerFrameworkBuilder.@org.checkerframework.checker.calledmethods.qual.NotCalledMethods("z") CheckerFrameworkBuilderBuilder this, final int z) { this.z = z; return this; diff --git a/test/transform/resource/after-ecj/CheckerFrameworkSuperBuilder.java b/test/transform/resource/after-ecj/CheckerFrameworkSuperBuilder.java index e4cc405d..1c552fcc 100644 --- a/test/transform/resource/after-ecj/CheckerFrameworkSuperBuilder.java +++ b/test/transform/resource/after-ecj/CheckerFrameworkSuperBuilder.java @@ -13,15 +13,24 @@ class CheckerFrameworkSuperBuilder { } protected abstract @org.checkerframework.common.returnsreceiver.qual.This @org.checkerframework.dataflow.qual.Pure @java.lang.SuppressWarnings("all") B self(); public abstract @org.checkerframework.dataflow.qual.SideEffectFree @java.lang.SuppressWarnings("all") C build(CheckerFrameworkSuperBuilder.Parent. @org.checkerframework.checker.calledmethods.qual.CalledMethods({"y", "z"}) ParentBuilder this); + /** + * @return {@code this}. + */ public @org.checkerframework.common.returnsreceiver.qual.This @java.lang.SuppressWarnings("all") B x(CheckerFrameworkSuperBuilder.Parent. @org.checkerframework.checker.calledmethods.qual.NotCalledMethods("x") ParentBuilder this, final int x) { this.x$value = x; x$set = true; return self(); } + /** + * @return {@code this}. + */ public @org.checkerframework.common.returnsreceiver.qual.This @java.lang.SuppressWarnings("all") B y(CheckerFrameworkSuperBuilder.Parent. @org.checkerframework.checker.calledmethods.qual.NotCalledMethods("y") ParentBuilder this, final int y) { this.y = y; return self(); } + /** + * @return {@code this}. + */ public @org.checkerframework.common.returnsreceiver.qual.This @java.lang.SuppressWarnings("all") B z(CheckerFrameworkSuperBuilder.Parent. @org.checkerframework.checker.calledmethods.qual.NotCalledMethods("z") ParentBuilder this, final int z) { this.z = z; return self(); @@ -104,11 +113,17 @@ class CheckerFrameworkSuperBuilder { } protected abstract @java.lang.Override @org.checkerframework.common.returnsreceiver.qual.This @org.checkerframework.dataflow.qual.Pure @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.Override @org.checkerframework.dataflow.qual.SideEffectFree @java.lang.SuppressWarnings("all") C build(CheckerFrameworkSuperBuilder.ZChild. @org.checkerframework.checker.calledmethods.qual.CalledMethods("b") ZChildBuilder this); + /** + * @return {@code this}. + */ public @org.checkerframework.common.returnsreceiver.qual.This @java.lang.SuppressWarnings("all") B a(CheckerFrameworkSuperBuilder.ZChild. @org.checkerframework.checker.calledmethods.qual.NotCalledMethods("a") ZChildBuilder this, final int a) { this.a$value = a; a$set = true; return self(); } + /** + * @return {@code this}. + */ public @org.checkerframework.common.returnsreceiver.qual.This @java.lang.SuppressWarnings("all") B b(CheckerFrameworkSuperBuilder.ZChild. @org.checkerframework.checker.calledmethods.qual.NotCalledMethods("b") ZChildBuilder this, final int b) { this.b = b; return self(); diff --git a/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults.java b/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults.java index ba4ee605..1fcd97e3 100644 --- a/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults.java +++ b/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults.java @@ -10,11 +10,17 @@ final @NoArgsConstructor(force = true) @AllArgsConstructor @Builder @Value class @java.lang.SuppressWarnings("all") ConstructorsWithBuilderDefaultsBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") ConstructorsWithBuilderDefaults.ConstructorsWithBuilderDefaultsBuilder x(final int x) { this.x$value = x; x$set = true; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") ConstructorsWithBuilderDefaults.ConstructorsWithBuilderDefaultsBuilder y(final int y) { this.y = y; return this; diff --git a/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java b/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java index 4355ee5c..4d6e7079 100644 --- a/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java +++ b/test/transform/resource/after-ecj/ConstructorsWithBuilderDefaults2.java @@ -11,16 +11,25 @@ final @Builder @Value class ConstructorsWithBuilderDefaults { @java.lang.SuppressWarnings("all") ConstructorsWithBuilderDefaultsBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") ConstructorsWithBuilderDefaults.ConstructorsWithBuilderDefaultsBuilder z(final java.util.List z) { this.z$value = z; z$set = true; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") ConstructorsWithBuilderDefaults.ConstructorsWithBuilderDefaultsBuilder x(final T x) { this.x$value = x; x$set = true; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") ConstructorsWithBuilderDefaults.ConstructorsWithBuilderDefaultsBuilder q(final T q) { this.q = q; return this; diff --git a/test/transform/resource/after-ecj/I2335_BuilderMultipleObtainVia.java b/test/transform/resource/after-ecj/I2335_BuilderMultipleObtainVia.java index 9c5eb6ae..393fe42a 100644 --- a/test/transform/resource/after-ecj/I2335_BuilderMultipleObtainVia.java +++ b/test/transform/resource/after-ecj/I2335_BuilderMultipleObtainVia.java @@ -6,10 +6,16 @@ public @Builder class I2335_BuilderMultipleObtainVia { @java.lang.SuppressWarnings("all") I2335_BuilderMultipleObtainViaBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") I2335_BuilderMultipleObtainVia.I2335_BuilderMultipleObtainViaBuilder theString(final String theString) { this.theString = theString; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") I2335_BuilderMultipleObtainVia.I2335_BuilderMultipleObtainViaBuilder theLong(final Long theLong) { this.theLong = theLong; return this; diff --git a/test/transform/resource/after-ecj/JacksonJsonProperty.java b/test/transform/resource/after-ecj/JacksonJsonProperty.java index 008f0256..c6d3d290 100644 --- a/test/transform/resource/after-ecj/JacksonJsonProperty.java +++ b/test/transform/resource/after-ecj/JacksonJsonProperty.java @@ -9,6 +9,9 @@ public @Builder class JacksonJsonProperty { @java.lang.SuppressWarnings("all") JacksonJsonPropertyBuilder() { super(); } + /** + * @return {@code this}. + */ public @JsonProperty("kebab-case-prop") @JsonSetter(nulls = Nulls.SKIP) @java.lang.SuppressWarnings("all") JacksonJsonProperty.JacksonJsonPropertyBuilder kebabCaseProp(final String kebabCaseProp) { this.kebabCaseProp = kebabCaseProp; return this; diff --git a/test/transform/resource/after-ecj/JacksonizedBuilderComplex.java b/test/transform/resource/after-ecj/JacksonizedBuilderComplex.java index 8a06b34b..6b95a6a2 100644 --- a/test/transform/resource/after-ecj/JacksonizedBuilderComplex.java +++ b/test/transform/resource/after-ecj/JacksonizedBuilderComplex.java @@ -10,18 +10,30 @@ import lombok.extern.jackson.Jacksonized; @java.lang.SuppressWarnings("all") TestVoidName() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") JacksonizedBuilderComplex.TestVoidName withNumber(final T number) { this.number = number; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") JacksonizedBuilderComplex.TestVoidName withArg2(final int arg2) { this.arg2 = arg2; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") JacksonizedBuilderComplex.TestVoidName withArg3(final String arg3) { this.arg3 = arg3; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") JacksonizedBuilderComplex.TestVoidName withSelfRef(final JacksonizedBuilderComplex selfRef) { this.selfRef = selfRef; return this; diff --git a/test/transform/resource/after-ecj/JacksonizedBuilderSimple.java b/test/transform/resource/after-ecj/JacksonizedBuilderSimple.java index 2e0a4e0c..87910d47 100644 --- a/test/transform/resource/after-ecj/JacksonizedBuilderSimple.java +++ b/test/transform/resource/after-ecj/JacksonizedBuilderSimple.java @@ -8,10 +8,16 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @java.lang.SuppressWarnings("all") JacksonizedBuilderSimpleBuilder() { super(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") JacksonizedBuilderSimple.JacksonizedBuilderSimpleBuilder yes(final int yes) { this.yes = yes; return this; } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") JacksonizedBuilderSimple.JacksonizedBuilderSimpleBuilder also(final List also) { this.also = also; return this; diff --git a/test/transform/resource/after-ecj/JacksonizedSuperBuilderSimple.java b/test/transform/resource/after-ecj/JacksonizedSuperBuilderSimple.java index 8227162a..46709a66 100644 --- a/test/transform/resource/after-ecj/JacksonizedSuperBuilderSimple.java +++ b/test/transform/resource/after-ecj/JacksonizedSuperBuilderSimple.java @@ -7,6 +7,9 @@ public class JacksonizedSuperBuilderSimple { } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field1(final int field1) { this.field1 = field1; return self(); diff --git a/test/transform/resource/after-ecj/JacksonizedSuperBuilderWithJsonDeserialize.java b/test/transform/resource/after-ecj/JacksonizedSuperBuilderWithJsonDeserialize.java index a5677275..62938eea 100644 --- a/test/transform/resource/after-ecj/JacksonizedSuperBuilderWithJsonDeserialize.java +++ b/test/transform/resource/after-ecj/JacksonizedSuperBuilderWithJsonDeserialize.java @@ -6,6 +6,9 @@ public @lombok.extern.jackson.Jacksonized @lombok.experimental.SuperBuilder @com } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field1(final int field1) { this.field1 = field1; return self(); diff --git a/test/transform/resource/after-ecj/NullLibrary1.java b/test/transform/resource/after-ecj/NullLibrary1.java index baea9e7a..5856f3b4 100644 --- a/test/transform/resource/after-ecj/NullLibrary1.java +++ b/test/transform/resource/after-ecj/NullLibrary1.java @@ -1,5 +1,8 @@ public @lombok.EqualsAndHashCode @lombok.ToString @lombok.AllArgsConstructor class NullLibrary1 { @lombok.With String foo; + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @org.eclipse.jdt.annotation.NonNull @java.lang.SuppressWarnings("all") NullLibrary1 withFoo(final String foo) { return ((this.foo == foo) ? this : new NullLibrary1(foo)); } diff --git a/test/transform/resource/after-ecj/NullLibrary2.java b/test/transform/resource/after-ecj/NullLibrary2.java index 60ad103f..e6a0723c 100644 --- a/test/transform/resource/after-ecj/NullLibrary2.java +++ b/test/transform/resource/after-ecj/NullLibrary2.java @@ -1,5 +1,8 @@ public @lombok.EqualsAndHashCode @lombok.ToString @lombok.AllArgsConstructor class NullLibrary2 { @lombok.With String foo; + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @org.springframework.lang.NonNull @java.lang.SuppressWarnings("all") NullLibrary2 withFoo(final String foo) { return ((this.foo == foo) ? this : new NullLibrary2(foo)); } diff --git a/test/transform/resource/after-ecj/SuperBuilderAbstract.java b/test/transform/resource/after-ecj/SuperBuilderAbstract.java index 51701668..88406272 100644 --- a/test/transform/resource/after-ecj/SuperBuilderAbstract.java +++ b/test/transform/resource/after-ecj/SuperBuilderAbstract.java @@ -7,6 +7,9 @@ public class SuperBuilderAbstract { } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B parentField(final int parentField) { this.parentField = parentField; return self(); @@ -43,6 +46,9 @@ public class SuperBuilderAbstract { } protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B childField(final double childField) { this.childField = childField; return self(); @@ -65,6 +71,9 @@ public class SuperBuilderAbstract { } protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B grandChildField(final String grandChildField) { this.grandChildField = grandChildField; return self(); diff --git a/test/transform/resource/after-ecj/SuperBuilderAbstractToBuilder.java b/test/transform/resource/after-ecj/SuperBuilderAbstractToBuilder.java index 4fa722e5..d1ce4fa9 100644 --- a/test/transform/resource/after-ecj/SuperBuilderAbstractToBuilder.java +++ b/test/transform/resource/after-ecj/SuperBuilderAbstractToBuilder.java @@ -14,6 +14,9 @@ public class SuperBuilderAbstractToBuilder { } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B parentField(final int parentField) { this.parentField = parentField; return self(); @@ -61,6 +64,9 @@ public class SuperBuilderAbstractToBuilder { } protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B childField(final double childField) { this.childField = childField; return self(); @@ -91,6 +97,9 @@ public class SuperBuilderAbstractToBuilder { } protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B grandChildField(final String grandChildField) { this.grandChildField = grandChildField; return self(); diff --git a/test/transform/resource/after-ecj/SuperBuilderBasic.java b/test/transform/resource/after-ecj/SuperBuilderBasic.java index 7902c95f..b5e835d4 100644 --- a/test/transform/resource/after-ecj/SuperBuilderBasic.java +++ b/test/transform/resource/after-ecj/SuperBuilderBasic.java @@ -9,6 +9,9 @@ public class SuperBuilderBasic { } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field1(final int field1) { this.field1 = field1; return self(); @@ -79,6 +82,9 @@ public class SuperBuilderBasic { } protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field3(final double field3) { this.field3 = field3; return self(); diff --git a/test/transform/resource/after-ecj/SuperBuilderBasicToBuilder.java b/test/transform/resource/after-ecj/SuperBuilderBasicToBuilder.java index 56703396..f6d298e1 100644 --- a/test/transform/resource/after-ecj/SuperBuilderBasicToBuilder.java +++ b/test/transform/resource/after-ecj/SuperBuilderBasicToBuilder.java @@ -23,18 +23,30 @@ public class SuperBuilderBasicToBuilder { } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field1(final int field1) { this.field1 = field1; return self(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B obtainViaField(final int obtainViaField) { this.obtainViaField = obtainViaField; return self(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B obtainViaMethod(final int obtainViaMethod) { this.obtainViaMethod = obtainViaMethod; return self(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B obtainViaStaticMethod(final String obtainViaStaticMethod) { this.obtainViaStaticMethod = obtainViaStaticMethod; return self(); @@ -128,6 +140,9 @@ public class SuperBuilderBasicToBuilder { } protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field3(final double field3) { this.field3 = field3; return self(); diff --git a/test/transform/resource/after-ecj/SuperBuilderCustomized.java b/test/transform/resource/after-ecj/SuperBuilderCustomized.java index fe0e1238..c9619602 100644 --- a/test/transform/resource/after-ecj/SuperBuilderCustomized.java +++ b/test/transform/resource/after-ecj/SuperBuilderCustomized.java @@ -62,6 +62,9 @@ public class SuperBuilderCustomized { } protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field2(final double field2) { this.field2 = field2; return self(); diff --git a/test/transform/resource/after-ecj/SuperBuilderNameClashes.java b/test/transform/resource/after-ecj/SuperBuilderNameClashes.java index 89ce3824..44d3db92 100644 --- a/test/transform/resource/after-ecj/SuperBuilderNameClashes.java +++ b/test/transform/resource/after-ecj/SuperBuilderNameClashes.java @@ -70,6 +70,9 @@ public class SuperBuilderNameClashes { } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C3 build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B c2(final C2 c2) { this.c2 = c2; return self(); diff --git a/test/transform/resource/after-ecj/SuperBuilderWithCustomBuilderMethod.java b/test/transform/resource/after-ecj/SuperBuilderWithCustomBuilderMethod.java index 25f6f876..5438f576 100644 --- a/test/transform/resource/after-ecj/SuperBuilderWithCustomBuilderMethod.java +++ b/test/transform/resource/after-ecj/SuperBuilderWithCustomBuilderMethod.java @@ -9,6 +9,9 @@ public class SuperBuilderWithCustomBuilderMethod { } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field1(final A field1) { this.field1 = field1; return self(); @@ -79,6 +82,9 @@ public class SuperBuilderWithCustomBuilderMethod { } protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field3(final double field3) { this.field3 = field3; return self(); diff --git a/test/transform/resource/after-ecj/SuperBuilderWithDefaults.java b/test/transform/resource/after-ecj/SuperBuilderWithDefaults.java index 03bfd319..72079b2f 100644 --- a/test/transform/resource/after-ecj/SuperBuilderWithDefaults.java +++ b/test/transform/resource/after-ecj/SuperBuilderWithDefaults.java @@ -11,11 +11,17 @@ public class SuperBuilderWithDefaults { } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B millis(final long millis) { this.millis$value = millis; millis$set = true; return self(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B numberField(final N numberField) { this.numberField$value = numberField; numberField$set = true; @@ -68,6 +74,9 @@ public class SuperBuilderWithDefaults { } protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B doubleField(final double doubleField) { this.doubleField$value = doubleField; doubleField$set = true; diff --git a/test/transform/resource/after-ecj/SuperBuilderWithGenerics.java b/test/transform/resource/after-ecj/SuperBuilderWithGenerics.java index 6bda526e..bc9db55f 100644 --- a/test/transform/resource/after-ecj/SuperBuilderWithGenerics.java +++ b/test/transform/resource/after-ecj/SuperBuilderWithGenerics.java @@ -9,6 +9,9 @@ public class SuperBuilderWithGenerics { } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field1(final A field1) { this.field1 = field1; return self(); @@ -79,6 +82,9 @@ public class SuperBuilderWithGenerics { } protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field3(final double field3) { this.field3 = field3; return self(); diff --git a/test/transform/resource/after-ecj/SuperBuilderWithGenerics2.java b/test/transform/resource/after-ecj/SuperBuilderWithGenerics2.java index 4fac5de9..07d10798 100644 --- a/test/transform/resource/after-ecj/SuperBuilderWithGenerics2.java +++ b/test/transform/resource/after-ecj/SuperBuilderWithGenerics2.java @@ -9,6 +9,9 @@ public class SuperBuilderWithGenerics2 { } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field1(final A field1) { this.field1 = field1; return self(); @@ -79,6 +82,9 @@ public class SuperBuilderWithGenerics2 { } protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field3(final A field3) { this.field3 = field3; return self(); diff --git a/test/transform/resource/after-ecj/SuperBuilderWithGenerics3.java b/test/transform/resource/after-ecj/SuperBuilderWithGenerics3.java index 760c4439..8184bb05 100644 --- a/test/transform/resource/after-ecj/SuperBuilderWithGenerics3.java +++ b/test/transform/resource/after-ecj/SuperBuilderWithGenerics3.java @@ -8,6 +8,9 @@ public class SuperBuilderWithGenerics3 { } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B str(final String str) { this.str = str; return self(); @@ -49,6 +52,9 @@ public class SuperBuilderWithGenerics3 { } protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field3(final double field3) { this.field3 = field3; return self(); diff --git a/test/transform/resource/after-ecj/SuperBuilderWithGenericsAndToBuilder.java b/test/transform/resource/after-ecj/SuperBuilderWithGenericsAndToBuilder.java index 4e55ae38..c1eb42fd 100644 --- a/test/transform/resource/after-ecj/SuperBuilderWithGenericsAndToBuilder.java +++ b/test/transform/resource/after-ecj/SuperBuilderWithGenericsAndToBuilder.java @@ -18,6 +18,9 @@ public class SuperBuilderWithGenericsAndToBuilder { } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field1(final A field1) { this.field1 = field1; return self(); @@ -116,6 +119,9 @@ public class SuperBuilderWithGenericsAndToBuilder { } protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field3(final double field3) { this.field3 = field3; return self(); diff --git a/test/transform/resource/after-ecj/SuperBuilderWithNonNull.java b/test/transform/resource/after-ecj/SuperBuilderWithNonNull.java index f0a2bc00..b9c96a38 100644 --- a/test/transform/resource/after-ecj/SuperBuilderWithNonNull.java +++ b/test/transform/resource/after-ecj/SuperBuilderWithNonNull.java @@ -9,6 +9,9 @@ public class SuperBuilderWithNonNull { } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B nonNullParentField(final @lombok.NonNull String nonNullParentField) { if ((nonNullParentField == null)) { @@ -60,6 +63,9 @@ public class SuperBuilderWithNonNull { } protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B nonNullChildField(final @lombok.NonNull String nonNullChildField) { if ((nonNullChildField == null)) { diff --git a/test/transform/resource/after-ecj/SuperBuilderWithPrefixes.java b/test/transform/resource/after-ecj/SuperBuilderWithPrefixes.java index 1f972899..303d53f6 100644 --- a/test/transform/resource/after-ecj/SuperBuilderWithPrefixes.java +++ b/test/transform/resource/after-ecj/SuperBuilderWithPrefixes.java @@ -8,10 +8,16 @@ } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B field(final int field) { this.field = field; return self(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B otherField(final int otherField) { this.otherField = otherField; return self(); diff --git a/test/transform/resource/after-ecj/SuperBuilderWithSetterPrefix.java b/test/transform/resource/after-ecj/SuperBuilderWithSetterPrefix.java index 6d24f613..0edb6608 100644 --- a/test/transform/resource/after-ecj/SuperBuilderWithSetterPrefix.java +++ b/test/transform/resource/after-ecj/SuperBuilderWithSetterPrefix.java @@ -23,18 +23,30 @@ public class SuperBuilderWithSetterPrefix { } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B withField1(final int field1) { this.field1 = field1; return self(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B withObtainViaField(final int obtainViaField) { this.obtainViaField = obtainViaField; return self(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B withObtainViaMethod(final int obtainViaMethod) { this.obtainViaMethod = obtainViaMethod; return self(); } + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B withObtainViaStaticMethod(final String obtainViaStaticMethod) { this.obtainViaStaticMethod = obtainViaStaticMethod; return self(); @@ -128,6 +140,9 @@ public class SuperBuilderWithSetterPrefix { } protected abstract @java.lang.Override @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.Override @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ public @java.lang.SuppressWarnings("all") B setField3(final double field3) { this.field3 = field3; return self(); diff --git a/test/transform/resource/after-ecj/Tolerate.java b/test/transform/resource/after-ecj/Tolerate.java index 1fe5fe4c..fa3f8624 100644 --- a/test/transform/resource/after-ecj/Tolerate.java +++ b/test/transform/resource/after-ecj/Tolerate.java @@ -25,6 +25,9 @@ import java.util.regex.Pattern; public @java.lang.SuppressWarnings("all") Pattern getPattern() { return this.pattern; } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") Tolerate2 withPattern(final Pattern pattern) { return ((this.pattern == pattern) ? this : new Tolerate2(pattern)); } diff --git a/test/transform/resource/after-ecj/WithAlreadyExists.java b/test/transform/resource/after-ecj/WithAlreadyExists.java index a868cde5..9dbd6d8a 100644 --- a/test/transform/resource/after-ecj/WithAlreadyExists.java +++ b/test/transform/resource/after-ecj/WithAlreadyExists.java @@ -37,6 +37,9 @@ class With5 { With5(String foo) { super(); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") With5 withFoo(final String foo) { return ((this.foo == foo) ? this : new With5(foo)); } @@ -48,6 +51,9 @@ class With6 { With6(String foo) { super(); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") With6 withFoo(final String foo) { return ((this.foo == foo) ? this : new With6(foo)); } diff --git a/test/transform/resource/after-ecj/WithAndAllArgsConstructor.java b/test/transform/resource/after-ecj/WithAndAllArgsConstructor.java index d3fcded2..52a7f3a3 100644 --- a/test/transform/resource/after-ecj/WithAndAllArgsConstructor.java +++ b/test/transform/resource/after-ecj/WithAndAllArgsConstructor.java @@ -4,9 +4,15 @@ final int x = 10; int y = 20; final int z; + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") WithAndAllArgsConstructor withTest(final J test) { return ((this.test == test) ? this : new WithAndAllArgsConstructor(test, this.test2, this.y, this.z)); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") WithAndAllArgsConstructor withTest2(final java.util.List test2) { return ((this.test2 == test2) ? this : new WithAndAllArgsConstructor(this.test, test2, this.y, this.z)); } diff --git a/test/transform/resource/after-ecj/WithMethodAbstract.java b/test/transform/resource/after-ecj/WithMethodAbstract.java index cb71357a..e0b14fc2 100644 --- a/test/transform/resource/after-ecj/WithMethodAbstract.java +++ b/test/transform/resource/after-ecj/WithMethodAbstract.java @@ -3,5 +3,8 @@ abstract class WithMethodAbstract { WithMethodAbstract() { super(); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public abstract @java.lang.SuppressWarnings("all") WithMethodAbstract withFoo(final String foo); } diff --git a/test/transform/resource/after-ecj/WithMethodMarkedDeprecated.java b/test/transform/resource/after-ecj/WithMethodMarkedDeprecated.java index 4220308c..d5f2bbcc 100644 --- a/test/transform/resource/after-ecj/WithMethodMarkedDeprecated.java +++ b/test/transform/resource/after-ecj/WithMethodMarkedDeprecated.java @@ -5,6 +5,9 @@ class WithMethodMarkedDeprecated { WithMethodMarkedDeprecated(int annotation, int javadoc) { super(); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.Deprecated @java.lang.SuppressWarnings("all") WithMethodMarkedDeprecated withAnnotation(final int annotation) { return ((this.annotation == annotation) ? this : new WithMethodMarkedDeprecated(annotation, this.javadoc)); } diff --git a/test/transform/resource/after-ecj/WithMethodMarkedDeprecatedAnnOnly.java b/test/transform/resource/after-ecj/WithMethodMarkedDeprecatedAnnOnly.java index 1dcee0d8..d4604af5 100644 --- a/test/transform/resource/after-ecj/WithMethodMarkedDeprecatedAnnOnly.java +++ b/test/transform/resource/after-ecj/WithMethodMarkedDeprecatedAnnOnly.java @@ -4,6 +4,9 @@ class WithMethodMarkedDeprecatedAnnOnly { WithMethodMarkedDeprecatedAnnOnly(int annotation) { super(); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.Deprecated @java.lang.SuppressWarnings("all") WithMethodMarkedDeprecatedAnnOnly withAnnotation(final int annotation) { return ((this.annotation == annotation) ? this : new WithMethodMarkedDeprecatedAnnOnly(annotation)); } diff --git a/test/transform/resource/after-ecj/WithNested.java b/test/transform/resource/after-ecj/WithNested.java index 55f6edb2..25a8bced 100644 --- a/test/transform/resource/after-ecj/WithNested.java +++ b/test/transform/resource/after-ecj/WithNested.java @@ -1,6 +1,9 @@ public interface WithNested { @lombok.RequiredArgsConstructor class IAmStaticReally { final @lombok.With String x; + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") WithNested.IAmStaticReally withX(final String x) { return ((this.x == x) ? this : new WithNested.IAmStaticReally(x)); } diff --git a/test/transform/resource/after-ecj/WithOnClass.java b/test/transform/resource/after-ecj/WithOnClass.java index ca3e8c6b..1c635fce 100644 --- a/test/transform/resource/after-ecj/WithOnClass.java +++ b/test/transform/resource/after-ecj/WithOnClass.java @@ -4,6 +4,9 @@ WithOnClass1(boolean isNone, boolean isPublic) { super(); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") WithOnClass1 withPublic(final boolean isPublic) { return ((this.isPublic == isPublic) ? this : new WithOnClass1(this.isNone, isPublic)); } @@ -15,9 +18,15 @@ WithOnClass2(boolean isNone, boolean isProtected, boolean isPackage) { super(); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ @java.lang.SuppressWarnings("all") WithOnClass2 withPackage(final boolean isPackage) { return ((this.isPackage == isPackage) ? this : new WithOnClass2(this.isNone, this.isProtected, isPackage)); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ protected @java.lang.SuppressWarnings("all") WithOnClass2 withProtected(final boolean isProtected) { return ((this.isProtected == isProtected) ? this : new WithOnClass2(this.isNone, isProtected, this.isPackage)); } @@ -28,9 +37,15 @@ WithOnClass3(String couldBeNull, String nonNull) { super(); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") WithOnClass3 withCouldBeNull(final String couldBeNull) { return ((this.couldBeNull == couldBeNull) ? this : new WithOnClass3(couldBeNull, this.nonNull)); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") WithOnClass3 withNonNull(final @lombok.NonNull String nonNull) { if ((nonNull == null)) { @@ -46,6 +61,9 @@ super(); this.fY = y; } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") WithOnClass4 withY(final int fY) { return ((this.fY == fY) ? this : new WithOnClass4(fY)); } diff --git a/test/transform/resource/after-ecj/WithPlain.java b/test/transform/resource/after-ecj/WithPlain.java index 66a1455b..9f888abe 100644 --- a/test/transform/resource/after-ecj/WithPlain.java +++ b/test/transform/resource/after-ecj/WithPlain.java @@ -7,9 +7,15 @@ class WithPlain { this.i = i; this.foo = foo; } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @org.springframework.lang.NonNull @java.lang.SuppressWarnings("all") WithPlain withI(final int i) { return ((this.i == i) ? this : new WithPlain(i, this.foo)); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @org.springframework.lang.NonNull @java.lang.SuppressWarnings("all") WithPlain withFoo(final int foo) { return ((this.foo == foo) ? this : new WithPlain(this.i, foo)); } diff --git a/test/transform/resource/after-ecj/WithWithGenerics.java b/test/transform/resource/after-ecj/WithWithGenerics.java index b6985b99..98b18092 100644 --- a/test/transform/resource/after-ecj/WithWithGenerics.java +++ b/test/transform/resource/after-ecj/WithWithGenerics.java @@ -6,12 +6,21 @@ class WithWithGenerics { public WithWithGenerics(J test, java.util.List test2, java.util.List test3) { super(); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") WithWithGenerics withTest(final J test) { return ((this.test == test) ? this : new WithWithGenerics(test, this.test2, this.test3)); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") WithWithGenerics withTest2(final java.util.List test2) { return ((this.test2 == test2) ? this : new WithWithGenerics(this.test, test2, this.test3)); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") WithWithGenerics withTest3(final java.util.List test3) { return ((this.test3 == test3) ? this : new WithWithGenerics(this.test, this.test2, test3)); } diff --git a/test/transform/resource/after-ecj/WithWithTypeAnnos.java b/test/transform/resource/after-ecj/WithWithTypeAnnos.java index ff73869b..8f1b3f69 100644 --- a/test/transform/resource/after-ecj/WithWithTypeAnnos.java +++ b/test/transform/resource/after-ecj/WithWithTypeAnnos.java @@ -12,6 +12,9 @@ class WithWithTypeAnnos { super(); this.foo = foo; } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") WithWithTypeAnnos withFoo(final @TA List foo) { return ((this.foo == foo) ? this : new WithWithTypeAnnos(foo)); } diff --git a/test/transform/resource/after-ecj/WitherAccessLevel.java b/test/transform/resource/after-ecj/WitherAccessLevel.java index 09a2e514..b6457534 100644 --- a/test/transform/resource/after-ecj/WitherAccessLevel.java +++ b/test/transform/resource/after-ecj/WitherAccessLevel.java @@ -9,18 +9,33 @@ class WitherAccessLevel { WitherAccessLevel(boolean isNone, boolean isPrivate, boolean isPackage, boolean isProtected, boolean isPublic, boolean value) { super(); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ private @java.lang.SuppressWarnings("all") WitherAccessLevel withPrivate(final boolean isPrivate) { return ((this.isPrivate == isPrivate) ? this : new WitherAccessLevel(this.isNone, isPrivate, this.isPackage, this.isProtected, this.isPublic, this.value)); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ @java.lang.SuppressWarnings("all") WitherAccessLevel withPackage(final boolean isPackage) { return ((this.isPackage == isPackage) ? this : new WitherAccessLevel(this.isNone, this.isPrivate, isPackage, this.isProtected, this.isPublic, this.value)); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ protected @java.lang.SuppressWarnings("all") WitherAccessLevel withProtected(final boolean isProtected) { return ((this.isProtected == isProtected) ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, isProtected, this.isPublic, this.value)); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") WitherAccessLevel withPublic(final boolean isPublic) { return ((this.isPublic == isPublic) ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, this.isProtected, isPublic, this.value)); } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") 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-ecj/WitherLegacyStar.java b/test/transform/resource/after-ecj/WitherLegacyStar.java index 7aeaa969..2b9ebe79 100644 --- a/test/transform/resource/after-ecj/WitherLegacyStar.java +++ b/test/transform/resource/after-ecj/WitherLegacyStar.java @@ -5,6 +5,9 @@ class WitherLegacyStar { super(); this.i = i; } + /** + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). + */ public @java.lang.SuppressWarnings("all") WitherLegacyStar withI(final int i) { return ((this.i == i) ? this : new WitherLegacyStar(i)); } -- cgit