diff options
6 files changed, 70 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/EqualsAndHashCodeExplicitInclude.java b/test/transform/resource/after-delombok/EqualsAndHashCodeExplicitInclude.java new file mode 100644 index 00000000..7de3d5fe --- /dev/null +++ b/test/transform/resource/after-delombok/EqualsAndHashCodeExplicitInclude.java @@ -0,0 +1,22 @@ +class EqualsAndHashCodeExplicitInclude { + int x; + @java.lang.Override + @java.lang.SuppressWarnings("all") + public boolean equals(final java.lang.Object o) { + if (o == this) return true; + if (!(o instanceof EqualsAndHashCodeExplicitInclude)) return false; + final EqualsAndHashCodeExplicitInclude other = (EqualsAndHashCodeExplicitInclude) o; + if (!other.canEqual((java.lang.Object) this)) return false; + return true; + } + @java.lang.SuppressWarnings("all") + protected boolean canEqual(final java.lang.Object other) { + return other instanceof EqualsAndHashCodeExplicitInclude; + } + @java.lang.Override + @java.lang.SuppressWarnings("all") + public int hashCode() { + int result = 1; + return result; + } +}
\ No newline at end of file diff --git a/test/transform/resource/after-delombok/ToStringExplicitInclude.java b/test/transform/resource/after-delombok/ToStringExplicitInclude.java new file mode 100644 index 00000000..e6b4c09a --- /dev/null +++ b/test/transform/resource/after-delombok/ToStringExplicitInclude.java @@ -0,0 +1,8 @@ +class ToStringExplicitInclude { + int x; + @java.lang.Override + @java.lang.SuppressWarnings("all") + public java.lang.String toString() { + return "ToStringExplicitInclude()"; + } +}
\ No newline at end of file diff --git a/test/transform/resource/after-ecj/EqualsAndHashCodeExplicitInclude.java b/test/transform/resource/after-ecj/EqualsAndHashCodeExplicitInclude.java new file mode 100644 index 00000000..01d1526c --- /dev/null +++ b/test/transform/resource/after-ecj/EqualsAndHashCodeExplicitInclude.java @@ -0,0 +1,23 @@ +@lombok.EqualsAndHashCode(onlyExplicitlyIncluded = true) class EqualsAndHashCodeExplicitInclude { + int x; + EqualsAndHashCodeExplicitInclude() { + super(); + } + public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) { + if ((o == this)) + return true; + if ((! (o instanceof EqualsAndHashCodeExplicitInclude))) + return false; + final EqualsAndHashCodeExplicitInclude other = (EqualsAndHashCodeExplicitInclude) o; + if ((! other.canEqual((java.lang.Object) this))) + return false; + return true; + } + protected @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) { + return (other instanceof EqualsAndHashCodeExplicitInclude); + } + public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() { + int result = 1; + return result; + } +}
\ No newline at end of file diff --git a/test/transform/resource/after-ecj/ToStringExplicitInclude.java b/test/transform/resource/after-ecj/ToStringExplicitInclude.java new file mode 100644 index 00000000..adb3109e --- /dev/null +++ b/test/transform/resource/after-ecj/ToStringExplicitInclude.java @@ -0,0 +1,9 @@ +@lombok.ToString(onlyExplicitlyIncluded = true) class ToStringExplicitInclude { + int x; + ToStringExplicitInclude() { + super(); + } + public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { + return "ToStringExplicitInclude()"; + } +} diff --git a/test/transform/resource/before/EqualsAndHashCodeExplicitInclude.java b/test/transform/resource/before/EqualsAndHashCodeExplicitInclude.java new file mode 100644 index 00000000..06b77f14 --- /dev/null +++ b/test/transform/resource/before/EqualsAndHashCodeExplicitInclude.java @@ -0,0 +1,4 @@ +@lombok.EqualsAndHashCode(onlyExplicitlyIncluded = true) +class EqualsAndHashCodeExplicitInclude { + int x; +} diff --git a/test/transform/resource/before/ToStringExplicitInclude.java b/test/transform/resource/before/ToStringExplicitInclude.java new file mode 100644 index 00000000..31687bc6 --- /dev/null +++ b/test/transform/resource/before/ToStringExplicitInclude.java @@ -0,0 +1,4 @@ +@lombok.ToString(onlyExplicitlyIncluded = true) +class ToStringExplicitInclude { + int x; +} |