aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-eclipse/EqualsAndHashCode.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2012-02-14 17:11:15 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2012-02-14 17:11:15 +0100
commit9a50da2d092f86eef6e00e0f518039ad3ef53ec8 (patch)
treea5bfc35f6685b745540670aca136423d6bf3516a /test/transform/resource/after-eclipse/EqualsAndHashCode.java
parent06581537f24fe31ee096960be496bc503059a95e (diff)
downloadlombok-9a50da2d092f86eef6e00e0f518039ad3ef53ec8.tar.gz
lombok-9a50da2d092f86eef6e00e0f518039ad3ef53ec8.tar.bz2
lombok-9a50da2d092f86eef6e00e0f518039ad3ef53ec8.zip
ecj tests and eclipse tests are now effectively doing the same thing, except the ecj tests are written in a slightly more close-to-reality way, and do work for 'val'. eclipse test aspect removed.
Diffstat (limited to 'test/transform/resource/after-eclipse/EqualsAndHashCode.java')
-rw-r--r--test/transform/resource/after-eclipse/EqualsAndHashCode.java109
1 files changed, 0 insertions, 109 deletions
diff --git a/test/transform/resource/after-eclipse/EqualsAndHashCode.java b/test/transform/resource/after-eclipse/EqualsAndHashCode.java
deleted file mode 100644
index eeda5867..00000000
--- a/test/transform/resource/after-eclipse/EqualsAndHashCode.java
+++ /dev/null
@@ -1,109 +0,0 @@
-@lombok.EqualsAndHashCode class EqualsAndHashCode {
- int x;
- boolean[] y;
- Object[] z;
- String a;
- public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
- if ((o == this))
- return true;
- if ((! (o instanceof EqualsAndHashCode)))
- return false;
- final @java.lang.SuppressWarnings("all") EqualsAndHashCode other = (EqualsAndHashCode) o;
- if ((! other.canEqual((java.lang.Object) this)))
- return false;
- if ((this.x != other.x))
- return false;
- if ((! java.util.Arrays.equals(this.y, other.y)))
- return false;
- if ((! java.util.Arrays.deepEquals(this.z, other.z)))
- return false;
- if (((this.a == null) ? (other.a != null) : (! this.a.equals((java.lang.Object) other.a))))
- return false;
- return true;
- }
- public @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) {
- return (other instanceof EqualsAndHashCode);
- }
- public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
- final int PRIME = 31;
- int result = 1;
- result = ((result * PRIME) + this.x);
- result = ((result * PRIME) + java.util.Arrays.hashCode(this.y));
- result = ((result * PRIME) + java.util.Arrays.deepHashCode(this.z));
- result = ((result * PRIME) + ((this.a == null) ? 0 : this.a.hashCode()));
- return result;
- }
- EqualsAndHashCode() {
- super();
- }
-}
-final @lombok.EqualsAndHashCode class EqualsAndHashCode2 {
- int x;
- public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
- if ((o == this))
- return true;
- if ((! (o instanceof EqualsAndHashCode2)))
- return false;
- final @java.lang.SuppressWarnings("all") EqualsAndHashCode2 other = (EqualsAndHashCode2) o;
- if ((this.x != other.x))
- return false;
- return true;
- }
- public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
- final int PRIME = 31;
- int result = 1;
- result = ((result * PRIME) + this.x);
- return result;
- }
- EqualsAndHashCode2() {
- super();
- }
-}
-final @lombok.EqualsAndHashCode(callSuper = false) class EqualsAndHashCode3 extends EqualsAndHashCode {
- public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
- if ((o == this))
- return true;
- if ((! (o instanceof EqualsAndHashCode3)))
- return false;
- final @java.lang.SuppressWarnings("all") EqualsAndHashCode3 other = (EqualsAndHashCode3) o;
- if ((! other.canEqual((java.lang.Object) this)))
- return false;
- return true;
- }
- public @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) {
- return (other instanceof EqualsAndHashCode3);
- }
- public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
- int result = 1;
- return result;
- }
- EqualsAndHashCode3() {
- super();
- }
-}
-@lombok.EqualsAndHashCode(callSuper = true) class EqualsAndHashCode4 extends EqualsAndHashCode {
- public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
- if ((o == this))
- return true;
- if ((! (o instanceof EqualsAndHashCode4)))
- return false;
- final @java.lang.SuppressWarnings("all") EqualsAndHashCode4 other = (EqualsAndHashCode4) o;
- if ((! other.canEqual((java.lang.Object) this)))
- return false;
- if ((! super.equals(o)))
- return false;
- return true;
- }
- public @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) {
- return (other instanceof EqualsAndHashCode4);
- }
- public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
- final int PRIME = 31;
- int result = 1;
- result = ((result * PRIME) + super.hashCode());
- return result;
- }
- EqualsAndHashCode4() {
- super();
- }
-}