diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-01-30 15:43:41 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-01-30 15:43:41 +0100 |
commit | a7bd812893ecb1fa603229d81c924823426ea973 (patch) | |
tree | 93ff3584b63d89752c7bf7bc4ed97e0ab567c5d1 /test/transform/resource/after-delombok/EqualsAndHashCode.java | |
parent | 7efbecfe49af452f117e6a16c969a4b2071e80cd (diff) | |
download | lombok-a7bd812893ecb1fa603229d81c924823426ea973.tar.gz lombok-a7bd812893ecb1fa603229d81c924823426ea973.tar.bz2 lombok-a7bd812893ecb1fa603229d81c924823426ea973.zip |
[i623] added eclipse code for generating @javax.annotation.Generated, and refactored java impl to reduce DRY violations. -f pretty now includes skipping generation of this annotation, and updated ALL the test cases.
Diffstat (limited to 'test/transform/resource/after-delombok/EqualsAndHashCode.java')
-rw-r--r-- | test/transform/resource/after-delombok/EqualsAndHashCode.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/EqualsAndHashCode.java b/test/transform/resource/after-delombok/EqualsAndHashCode.java index 02ca2c42..a15b71b0 100644 --- a/test/transform/resource/after-delombok/EqualsAndHashCode.java +++ b/test/transform/resource/after-delombok/EqualsAndHashCode.java @@ -6,6 +6,7 @@ class EqualsAndHashCode { String b; @java.lang.Override @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") public boolean equals(final java.lang.Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCode)) return false; @@ -23,11 +24,13 @@ class EqualsAndHashCode { return true; } @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") protected boolean canEqual(final java.lang.Object other) { return other instanceof EqualsAndHashCode; } @java.lang.Override @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") public int hashCode() { final int PRIME = 59; int result = 1; @@ -49,6 +52,7 @@ final class EqualsAndHashCode2 { boolean b; @java.lang.Override @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") public boolean equals(final java.lang.Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCode2)) return false; @@ -62,6 +66,7 @@ final class EqualsAndHashCode2 { } @java.lang.Override @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") public int hashCode() { final int PRIME = 59; int result = 1; @@ -78,6 +83,7 @@ final class EqualsAndHashCode2 { final class EqualsAndHashCode3 extends EqualsAndHashCode { @java.lang.Override @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") public boolean equals(final java.lang.Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCode3)) return false; @@ -86,11 +92,13 @@ final class EqualsAndHashCode3 extends EqualsAndHashCode { return true; } @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") protected boolean canEqual(final java.lang.Object other) { return other instanceof EqualsAndHashCode3; } @java.lang.Override @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") public int hashCode() { int result = 1; return result; @@ -99,6 +107,7 @@ final class EqualsAndHashCode3 extends EqualsAndHashCode { class EqualsAndHashCode4 extends EqualsAndHashCode { @java.lang.Override @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") public boolean equals(final java.lang.Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCode4)) return false; @@ -108,11 +117,13 @@ class EqualsAndHashCode4 extends EqualsAndHashCode { return true; } @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") protected boolean canEqual(final java.lang.Object other) { return other instanceof EqualsAndHashCode4; } @java.lang.Override @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") public int hashCode() { final int PRIME = 59; int result = 1; |