aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r--test/transform/resource/after-ecj/AccessorsInAnonymousClass.java29
-rw-r--r--test/transform/resource/after-ecj/BuilderInAnonymousClass.java17
-rw-r--r--test/transform/resource/after-ecj/ConstructorsInAnonymousClass.java38
-rw-r--r--test/transform/resource/after-ecj/DataInAnonymousClass.java50
-rw-r--r--test/transform/resource/after-ecj/EqualsAndHashCodeInAnonymousClass.java41
-rw-r--r--test/transform/resource/after-ecj/FieldNameConstantsInAnonymousClass.java17
-rw-r--r--test/transform/resource/after-ecj/GetterInAnonymousClass.java20
-rw-r--r--test/transform/resource/after-ecj/GetterLazyInAnonymousClass.java34
-rw-r--r--test/transform/resource/after-ecj/LoggerSlf4jInAnonymousClass.java16
-rw-r--r--test/transform/resource/after-ecj/SetterInAnonymousClass.java20
-rw-r--r--test/transform/resource/after-ecj/SuperBuilderInAnonymousClass.java23
-rw-r--r--test/transform/resource/after-ecj/SynchronizedInAnonymousClass.java23
-rw-r--r--test/transform/resource/after-ecj/ToStringInAnonymousClass.java20
-rw-r--r--test/transform/resource/after-ecj/UtilityClassInAnonymousClass.java17
-rw-r--r--test/transform/resource/after-ecj/ValueInAnonymousClass.java43
-rw-r--r--test/transform/resource/after-ecj/WithByInAnonymousClass.java20
-rw-r--r--test/transform/resource/after-ecj/WithInAnonymousClass.java23
17 files changed, 451 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/AccessorsInAnonymousClass.java b/test/transform/resource/after-ecj/AccessorsInAnonymousClass.java
new file mode 100644
index 00000000..34db4f2d
--- /dev/null
+++ b/test/transform/resource/after-ecj/AccessorsInAnonymousClass.java
@@ -0,0 +1,29 @@
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+public class AccessorsInAnonymousClass {
+ Object annonymous = new Object() {
+ @Getter @Setter @Accessors(fluent = true) class Inner {
+ private String string;
+ Inner() {
+ super();
+ }
+ public @java.lang.SuppressWarnings("all") String string() {
+ return this.string;
+ }
+ /**
+ * @return {@code this}.
+ */
+ public @java.lang.SuppressWarnings("all") Inner string(final String string) {
+ this.string = string;
+ return this;
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public AccessorsInAnonymousClass() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/BuilderInAnonymousClass.java b/test/transform/resource/after-ecj/BuilderInAnonymousClass.java
new file mode 100644
index 00000000..67660822
--- /dev/null
+++ b/test/transform/resource/after-ecj/BuilderInAnonymousClass.java
@@ -0,0 +1,17 @@
+import lombok.Builder;
+public class BuilderInAnonymousClass {
+ Object annonymous = new Object() {
+ @Builder class Inner {
+ private String string;
+ Inner() {
+ super();
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public BuilderInAnonymousClass() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/ConstructorsInAnonymousClass.java b/test/transform/resource/after-ecj/ConstructorsInAnonymousClass.java
new file mode 100644
index 00000000..545ab04d
--- /dev/null
+++ b/test/transform/resource/after-ecj/ConstructorsInAnonymousClass.java
@@ -0,0 +1,38 @@
+import lombok.AllArgsConstructor;
+import lombok.NoArgsConstructor;
+import lombok.NonNull;
+import lombok.RequiredArgsConstructor;
+public class ConstructorsInAnonymousClass {
+ Object annonymous = new Object() {
+ @AllArgsConstructor @RequiredArgsConstructor @NoArgsConstructor class Inner {
+ private String string;
+ private @NonNull String string2;
+ public @java.lang.SuppressWarnings("all") Inner(final String string, final @NonNull String string2) {
+ super();
+ if ((string2 == null))
+ {
+ throw new java.lang.NullPointerException("string2 is marked non-null but is null");
+ }
+ this.string = string;
+ this.string2 = string2;
+ }
+ public @java.lang.SuppressWarnings("all") Inner(final @NonNull String string2) {
+ super();
+ if ((string2 == null))
+ {
+ throw new java.lang.NullPointerException("string2 is marked non-null but is null");
+ }
+ this.string2 = string2;
+ }
+ public @java.lang.SuppressWarnings("all") Inner() {
+ super();
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public ConstructorsInAnonymousClass() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/DataInAnonymousClass.java b/test/transform/resource/after-ecj/DataInAnonymousClass.java
new file mode 100644
index 00000000..c6e22f80
--- /dev/null
+++ b/test/transform/resource/after-ecj/DataInAnonymousClass.java
@@ -0,0 +1,50 @@
+import lombok.Data;
+public class DataInAnonymousClass {
+ Object annonymous = new Object() {
+ @Data class Inner {
+ private String string;
+ public @java.lang.SuppressWarnings("all") String getString() {
+ return this.string;
+ }
+ public @java.lang.SuppressWarnings("all") void setString(final String string) {
+ this.string = string;
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
+ if ((o == this))
+ return true;
+ if ((! (o instanceof Inner)))
+ return false;
+ final Inner other = (Inner) o;
+ if ((! other.canEqual((java.lang.Object) this)))
+ return false;
+ final java.lang.Object this$string = this.getString();
+ final java.lang.Object other$string = other.getString();
+ if (((this$string == null) ? (other$string != null) : (! this$string.equals(other$string))))
+ return false;
+ return true;
+ }
+ protected @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) {
+ return (other instanceof Inner);
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ final java.lang.Object $string = this.getString();
+ result = ((result * PRIME) + (($string == null) ? 43 : $string.hashCode()));
+ return result;
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return (("Inner(string=" + this.getString()) + ")");
+ }
+ public @java.lang.SuppressWarnings("all") Inner() {
+ super();
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public DataInAnonymousClass() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/EqualsAndHashCodeInAnonymousClass.java b/test/transform/resource/after-ecj/EqualsAndHashCodeInAnonymousClass.java
new file mode 100644
index 00000000..e66850bb
--- /dev/null
+++ b/test/transform/resource/after-ecj/EqualsAndHashCodeInAnonymousClass.java
@@ -0,0 +1,41 @@
+import lombok.EqualsAndHashCode;
+public class EqualsAndHashCodeInAnonymousClass {
+ Object annonymous = new Object() {
+ @EqualsAndHashCode class Inner {
+ private String string;
+ Inner() {
+ super();
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
+ if ((o == this))
+ return true;
+ if ((! (o instanceof Inner)))
+ return false;
+ final Inner other = (Inner) o;
+ if ((! other.canEqual((java.lang.Object) this)))
+ return false;
+ final java.lang.Object this$string = this.string;
+ final java.lang.Object other$string = other.string;
+ if (((this$string == null) ? (other$string != null) : (! this$string.equals(other$string))))
+ return false;
+ return true;
+ }
+ protected @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) {
+ return (other instanceof Inner);
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ final java.lang.Object $string = this.string;
+ result = ((result * PRIME) + (($string == null) ? 43 : $string.hashCode()));
+ return result;
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public EqualsAndHashCodeInAnonymousClass() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/FieldNameConstantsInAnonymousClass.java b/test/transform/resource/after-ecj/FieldNameConstantsInAnonymousClass.java
new file mode 100644
index 00000000..b04bef51
--- /dev/null
+++ b/test/transform/resource/after-ecj/FieldNameConstantsInAnonymousClass.java
@@ -0,0 +1,17 @@
+import lombok.experimental.FieldNameConstants;
+public class FieldNameConstantsInAnonymousClass {
+ Object annonymous = new Object() {
+ @FieldNameConstants class Inner {
+ private String string;
+ Inner() {
+ super();
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public FieldNameConstantsInAnonymousClass() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/GetterInAnonymousClass.java b/test/transform/resource/after-ecj/GetterInAnonymousClass.java
new file mode 100644
index 00000000..30e6338d
--- /dev/null
+++ b/test/transform/resource/after-ecj/GetterInAnonymousClass.java
@@ -0,0 +1,20 @@
+import lombok.Getter;
+public class GetterInAnonymousClass {
+ Object annonymous = new Object() {
+ @Getter class Inner {
+ private String string;
+ Inner() {
+ super();
+ }
+ public @java.lang.SuppressWarnings("all") String getString() {
+ return this.string;
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public GetterInAnonymousClass() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/GetterLazyInAnonymousClass.java b/test/transform/resource/after-ecj/GetterLazyInAnonymousClass.java
new file mode 100644
index 00000000..ab8bc599
--- /dev/null
+++ b/test/transform/resource/after-ecj/GetterLazyInAnonymousClass.java
@@ -0,0 +1,34 @@
+import lombok.Getter;
+public class GetterLazyInAnonymousClass {
+ Object annonymous = new Object() {
+ class Inner {
+ private final @Getter(lazy = true) java.util.concurrent.atomic.AtomicReference<java.lang.Object> string = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
+ Inner() {
+ super();
+ }
+ public @java.lang.SuppressWarnings({"all", "unchecked"}) String getString() {
+ java.lang.Object value = this.string.get();
+ if ((value == null))
+ {
+ synchronized (this.string)
+ {
+ value = this.string.get();
+ if ((value == null))
+ {
+ final String actualValue = "test";
+ value = ((actualValue == null) ? this.string : actualValue);
+ this.string.set(value);
+ }
+ }
+ }
+ return (String) ((value == this.string) ? null : value);
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public GetterLazyInAnonymousClass() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/LoggerSlf4jInAnonymousClass.java b/test/transform/resource/after-ecj/LoggerSlf4jInAnonymousClass.java
new file mode 100644
index 00000000..0c78a288
--- /dev/null
+++ b/test/transform/resource/after-ecj/LoggerSlf4jInAnonymousClass.java
@@ -0,0 +1,16 @@
+import lombok.extern.slf4j.Slf4j;
+public class LoggerSlf4jInAnonymousClass {
+ Object annonymous = new Object() {
+ @Slf4j class Inner {
+ Inner() {
+ super();
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public LoggerSlf4jInAnonymousClass() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/SetterInAnonymousClass.java b/test/transform/resource/after-ecj/SetterInAnonymousClass.java
new file mode 100644
index 00000000..fc0bf2d8
--- /dev/null
+++ b/test/transform/resource/after-ecj/SetterInAnonymousClass.java
@@ -0,0 +1,20 @@
+import lombok.Setter;
+public class SetterInAnonymousClass {
+ Object annonymous = new Object() {
+ @Setter class Inner {
+ private String string;
+ Inner() {
+ super();
+ }
+ public @java.lang.SuppressWarnings("all") void setString(final String string) {
+ this.string = string;
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public SetterInAnonymousClass() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/SuperBuilderInAnonymousClass.java b/test/transform/resource/after-ecj/SuperBuilderInAnonymousClass.java
new file mode 100644
index 00000000..238f42df
--- /dev/null
+++ b/test/transform/resource/after-ecj/SuperBuilderInAnonymousClass.java
@@ -0,0 +1,23 @@
+import lombok.experimental.SuperBuilder;
+public class SuperBuilderInAnonymousClass {
+ Object annonymous = new Object() {
+ @SuperBuilder class InnerParent {
+ private String string;
+ InnerParent() {
+ super();
+ }
+ }
+ @SuperBuilder class InnerChild {
+ private String string;
+ InnerChild() {
+ super();
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public SuperBuilderInAnonymousClass() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/SynchronizedInAnonymousClass.java b/test/transform/resource/after-ecj/SynchronizedInAnonymousClass.java
new file mode 100644
index 00000000..77013f2f
--- /dev/null
+++ b/test/transform/resource/after-ecj/SynchronizedInAnonymousClass.java
@@ -0,0 +1,23 @@
+import lombok.Synchronized;
+public class SynchronizedInAnonymousClass {
+ Object annonymous = new Object() {
+ class Inner {
+ private final java.lang.Object $lock = new java.lang.Object[0];
+ Inner() {
+ super();
+ }
+ public @Synchronized void foo() {
+ synchronized (this.$lock)
+ {
+ String foo = "bar";
+ }
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public SynchronizedInAnonymousClass() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/ToStringInAnonymousClass.java b/test/transform/resource/after-ecj/ToStringInAnonymousClass.java
new file mode 100644
index 00000000..02ad2a88
--- /dev/null
+++ b/test/transform/resource/after-ecj/ToStringInAnonymousClass.java
@@ -0,0 +1,20 @@
+import lombok.ToString;
+public class ToStringInAnonymousClass {
+ Object annonymous = new Object() {
+ @ToString class Inner {
+ private String string;
+ Inner() {
+ super();
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return (("Inner(string=" + this.string) + ")");
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public ToStringInAnonymousClass() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/UtilityClassInAnonymousClass.java b/test/transform/resource/after-ecj/UtilityClassInAnonymousClass.java
new file mode 100644
index 00000000..e836636d
--- /dev/null
+++ b/test/transform/resource/after-ecj/UtilityClassInAnonymousClass.java
@@ -0,0 +1,17 @@
+import lombok.experimental.UtilityClass;
+public class UtilityClassInAnonymousClass {
+ Object annonymous = new Object() {
+ @UtilityClass class Inner {
+ private String string;
+ Inner() {
+ super();
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public UtilityClassInAnonymousClass() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/ValueInAnonymousClass.java b/test/transform/resource/after-ecj/ValueInAnonymousClass.java
new file mode 100644
index 00000000..49cf8fc2
--- /dev/null
+++ b/test/transform/resource/after-ecj/ValueInAnonymousClass.java
@@ -0,0 +1,43 @@
+import lombok.Value;
+public class ValueInAnonymousClass {
+ Object annonymous = new Object() {
+ final @Value class Inner {
+ private final String string;
+ public @java.lang.SuppressWarnings("all") String getString() {
+ return this.string;
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
+ if ((o == this))
+ return true;
+ if ((! (o instanceof Inner)))
+ return false;
+ final Inner other = (Inner) o;
+ final java.lang.Object this$string = this.getString();
+ final java.lang.Object other$string = other.getString();
+ if (((this$string == null) ? (other$string != null) : (! this$string.equals(other$string))))
+ return false;
+ return true;
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ final java.lang.Object $string = this.getString();
+ result = ((result * PRIME) + (($string == null) ? 43 : $string.hashCode()));
+ return result;
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return (("Inner(string=" + this.getString()) + ")");
+ }
+ public @java.lang.SuppressWarnings("all") Inner(final String string) {
+ super();
+ this.string = string;
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public ValueInAnonymousClass() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/WithByInAnonymousClass.java b/test/transform/resource/after-ecj/WithByInAnonymousClass.java
new file mode 100644
index 00000000..1bc3e80c
--- /dev/null
+++ b/test/transform/resource/after-ecj/WithByInAnonymousClass.java
@@ -0,0 +1,20 @@
+import lombok.experimental.WithBy;
+public class WithByInAnonymousClass {
+ Object annonymous = new Object() {
+ @WithBy class Inner {
+ private String string;
+ private Inner(String string) {
+ super();
+ }
+ public @java.lang.SuppressWarnings("all") Inner withStringBy(final java.util.function.Function<? super String, ? extends String> transformer) {
+ return new Inner(transformer.apply(this.string));
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public WithByInAnonymousClass() {
+ super();
+ }
+}
diff --git a/test/transform/resource/after-ecj/WithInAnonymousClass.java b/test/transform/resource/after-ecj/WithInAnonymousClass.java
new file mode 100644
index 00000000..fef96022
--- /dev/null
+++ b/test/transform/resource/after-ecj/WithInAnonymousClass.java
@@ -0,0 +1,23 @@
+import lombok.With;
+public class WithInAnonymousClass {
+ Object annonymous = new Object() {
+ @With class Inner {
+ private String string;
+ private Inner(String string) {
+ 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") Inner withString(final String string) {
+ return ((this.string == string) ? this : new Inner(string));
+ }
+ }
+ x() {
+ super();
+ }
+ };
+ public WithInAnonymousClass() {
+ super();
+ }
+}