aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/EqualsAndHashCodeWithNonNullByDefault.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok/EqualsAndHashCodeWithNonNullByDefault.java')
-rw-r--r--test/transform/resource/after-delombok/EqualsAndHashCodeWithNonNullByDefault.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/EqualsAndHashCodeWithNonNullByDefault.java b/test/transform/resource/after-delombok/EqualsAndHashCodeWithNonNullByDefault.java
new file mode 100644
index 00000000..37711004
--- /dev/null
+++ b/test/transform/resource/after-delombok/EqualsAndHashCodeWithNonNullByDefault.java
@@ -0,0 +1,23 @@
+import javax.annotation.ParametersAreNonnullByDefault;
+@ParametersAreNonnullByDefault
+class EqualsAndHashCodeWithNonNullByDefault {
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public boolean equals(@javax.annotation.Nullable final 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;
+ }
+ @java.lang.SuppressWarnings("all")
+ protected boolean canEqual(@javax.annotation.Nullable final java.lang.Object other) {
+ return other instanceof EqualsAndHashCodeWithNonNullByDefault;
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public int hashCode() {
+ final int result = 1;
+ return result;
+ }
+}