aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2022-03-01 18:05:38 +0100
committerGitHub <noreply@github.com>2022-03-01 18:05:38 +0100
commit8c3ff7e9b08c4bf9c2b23cffb6042c31258e3ebb (patch)
tree56747d50cda77d9e96da9babfbd4cd1544766491 /test/transform/resource/after-ecj
parent560ded50127b12bd8168f8ae2bada47253f15bc8 (diff)
parentc67909e2039cdac449808464ff28a8e71a56b7a1 (diff)
downloadlombok-8c3ff7e9b08c4bf9c2b23cffb6042c31258e3ebb.tar.gz
lombok-8c3ff7e9b08c4bf9c2b23cffb6042c31258e3ebb.tar.bz2
lombok-8c3ff7e9b08c4bf9c2b23cffb6042c31258e3ebb.zip
Merge pull request #3121 from JohnPaulTaylorII/master
Fixes #3120
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r--test/transform/resource/after-ecj/EqualsAndHashCodeWithNonNullByDefault.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/EqualsAndHashCodeWithNonNullByDefault.java b/test/transform/resource/after-ecj/EqualsAndHashCodeWithNonNullByDefault.java
new file mode 100644
index 00000000..0cd170b4
--- /dev/null
+++ b/test/transform/resource/after-ecj/EqualsAndHashCodeWithNonNullByDefault.java
@@ -0,0 +1,23 @@
+import javax.annotation.ParametersAreNonnullByDefault;
+@lombok.EqualsAndHashCode @ParametersAreNonnullByDefault class EqualsAndHashCodeWithNonNullByDefault {
+ EqualsAndHashCodeWithNonNullByDefault() {
+ super();
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final @javax.annotation.Nullable java.lang.Object o) {
+ if ((o == this))
+ return true;
+ if ((! (o instanceof EqualsAndHashCodeWithNonNullByDefault)))
+ return false;
+ final EqualsAndHashCodeWithNonNullByDefault other = (EqualsAndHashCodeWithNonNullByDefault) o;
+ if ((! other.canEqual((java.lang.Object) this)))
+ return false;
+ return true;
+ }
+ protected @java.lang.SuppressWarnings("all") boolean canEqual(final @javax.annotation.Nullable java.lang.Object other) {
+ return (other instanceof EqualsAndHashCodeWithNonNullByDefault);
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
+ final int result = 1;
+ return result;
+ }
+} \ No newline at end of file