diff --git a/test/transform/resource/after-delombok/WitherAccessLevel.java b/test/transform/resource/after-delombok/WitherAccessLevel.java deleted file mode 100644 index c2c820ea..00000000 --- a/test/transform/resource/after-delombok/WitherAccessLevel.java +++ /dev/null @@ -1,50 +0,0 @@ -class WitherAccessLevel { - boolean isNone; - boolean isPrivate; - boolean isPackage; - boolean isProtected; - boolean isPublic; - boolean value; - WitherAccessLevel(boolean isNone, boolean isPrivate, boolean isPackage, boolean isProtected, boolean isPublic, boolean 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") - @lombok.Generated - private 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") - @lombok.Generated - 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). - */ - @java.lang.SuppressWarnings("all") - @lombok.Generated - protected 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). - */ - @java.lang.SuppressWarnings("all") - @lombok.Generated - public 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). - */ - @java.lang.SuppressWarnings("all") - @lombok.Generated - 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/WitherLegacyStar.java b/test/transform/resource/after-delombok/WitherLegacyStar.java deleted file mode 100644 index 5bb12fe7..00000000 --- a/test/transform/resource/after-delombok/WitherLegacyStar.java +++ /dev/null @@ -1,14 +0,0 @@ -class WitherLegacyStar { - int i; - WitherLegacyStar(int i) { - this.i = i; - } - /** - * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). - */ - @java.lang.SuppressWarnings("all") - @lombok.Generated - public WitherLegacyStar withI(final int i) { - return this.i == i ? this : new WitherLegacyStar(i); - } -} diff --git a/test/transform/resource/after-ecj/ValUndenotable.java b/test/transform/resource/after-ecj/ValUndenotable.java new file mode 100644 index 00000000..f6886823 --- /dev/null +++ b/test/transform/resource/after-ecj/ValUndenotable.java @@ -0,0 +1,16 @@ +import lombok.val; +public class ValUndenotable { + public ValUndenotable() { + super(); + } + public void method(int arg) { + final @val var x = new Object() { + x() { + super(); + } + void foo() { + } + }; + x.foo(); + } +} \ No newline at end of file diff --git a/test/transform/resource/after-ecj/WitherAccessLevel.java b/test/transform/resource/after-ecj/WitherAccessLevel.java deleted file mode 100644 index 85a4c4c4..00000000 --- a/test/transform/resource/after-ecj/WitherAccessLevel.java +++ /dev/null @@ -1,42 +0,0 @@ -import lombok.AccessLevel; -class WitherAccessLevel { - @lombok.With(lombok.AccessLevel.NONE) boolean isNone; - @lombok.With(AccessLevel.PRIVATE) boolean isPrivate; - @lombok.With(lombok.AccessLevel.PACKAGE) boolean isPackage; - @lombok.With(AccessLevel.PROTECTED) boolean isProtected; - @lombok.With(lombok.AccessLevel.PUBLIC) boolean isPublic; - @lombok.With(value = lombok.AccessLevel.PUBLIC) boolean value; - 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") @lombok.Generated 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") @lombok.Generated 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") @lombok.Generated 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") @lombok.Generated 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") @lombok.Generated 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 deleted file mode 100644 index 45faa5d1..00000000 --- a/test/transform/resource/after-ecj/WitherLegacyStar.java +++ /dev/null @@ -1,14 +0,0 @@ -import lombok.experimental.*; -class WitherLegacyStar { - @Wither int i; - WitherLegacyStar(int i) { - 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") @lombok.Generated WitherLegacyStar withI(final int i) { - return ((this.i == i) ? this : new WitherLegacyStar(i)); - } -} diff --git a/test/transform/resource/before/WitherAccessLevel.java b/test/transform/resource/before/WitherAccessLevel.java deleted file mode 100644 index c3f659c5..00000000 --- a/test/transform/resource/before/WitherAccessLevel.java +++ /dev/null @@ -1,24 +0,0 @@ -import lombok.AccessLevel; - -class WitherAccessLevel { - @lombok.With(lombok.AccessLevel.NONE) - boolean isNone; - - @lombok.With(AccessLevel.PRIVATE) - boolean isPrivate; - - @lombok.With(lombok.AccessLevel.PACKAGE) - boolean isPackage; - - @lombok.With(AccessLevel.PROTECTED) - boolean isProtected; - - @lombok.With(lombok.AccessLevel.PUBLIC) - boolean isPublic; - - @lombok.With(value=lombok.AccessLevel.PUBLIC) - boolean value; - - WitherAccessLevel(boolean isNone, boolean isPrivate, boolean isPackage, boolean isProtected, boolean isPublic, boolean value) { - } -} diff --git a/test/transform/resource/before/WitherLegacyStar.java b/test/transform/resource/before/WitherLegacyStar.java deleted file mode 100644 index e1a58ae1..00000000 --- a/test/transform/resource/before/WitherLegacyStar.java +++ /dev/null @@ -1,8 +0,0 @@ -import lombok.experimental.*; -class WitherLegacyStar { - @Wither int i; - - WitherLegacyStar(int i) { - this.i = i; - } -}