From e95680a76733c22ee5937a586ee50c703d5ba621 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 20 Jan 2020 15:25:08 +0100 Subject: [issue #2221] [issue #788] Lombok now adds nullity annotations. Which 'flavour' is defined in lombok.config; applied to toString, equals, canEqual, and plural-form of `@Singular`. --- .../after-delombok/EqualsAndHashCodeWithNNBD.java | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 test/transform/resource/after-delombok/EqualsAndHashCodeWithNNBD.java (limited to 'test/transform/resource/after-delombok/EqualsAndHashCodeWithNNBD.java') diff --git a/test/transform/resource/after-delombok/EqualsAndHashCodeWithNNBD.java b/test/transform/resource/after-delombok/EqualsAndHashCodeWithNNBD.java deleted file mode 100644 index 6eaf9f36..00000000 --- a/test/transform/resource/after-delombok/EqualsAndHashCodeWithNNBD.java +++ /dev/null @@ -1,30 +0,0 @@ -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 -- cgit