aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/EqualsAndHashCodeWithNNBD.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok/EqualsAndHashCodeWithNNBD.java')
-rw-r--r--test/transform/resource/after-delombok/EqualsAndHashCodeWithNNBD.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/EqualsAndHashCodeWithNNBD.java b/test/transform/resource/after-delombok/EqualsAndHashCodeWithNNBD.java
new file mode 100644
index 00000000..6eaf9f36
--- /dev/null
+++ b/test/transform/resource/after-delombok/EqualsAndHashCodeWithNNBD.java
@@ -0,0 +1,30 @@
+import javax.annotation.ParametersAreNonnullByDefault;
+
+@ParametersAreNonnullByDefault
+class EqualsAndHashCodeWithNNBD {
+
+ @org.eclipse.jdt.annotation.NonNullByDefault
+ static class Inner {
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public boolean equals(final java.lang.@javax.annotation.Nullable @org.eclipse.jdt.annotation.Nullable Object o) {
+ if (o == this) return true;
+ if (!(o instanceof EqualsAndHashCodeWithNNBD.Inner)) return false;
+ final EqualsAndHashCodeWithNNBD.Inner other = (EqualsAndHashCodeWithNNBD.Inner) 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 EqualsAndHashCodeWithNNBD.Inner;
+ }
+
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public int hashCode() {
+ final int result = 1;
+ return result;
+ }
+ }
+} \ No newline at end of file