diff options
author | Roel Spilker <r.spilker@gmail.com> | 2012-06-18 23:37:34 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2012-06-18 23:38:02 +0200 |
commit | 37cbe2d3f9cd8737b46b6bfb263277f7b7cd7861 (patch) | |
tree | c8f5f66c3b420bbc1beecb85fd5a67905c5a54d3 /test/transform | |
parent | 78bf0f6fbbba39e1c56d5dda3df7b0c3eaec74ad (diff) | |
download | lombok-37cbe2d3f9cd8737b46b6bfb263277f7b7cd7861.tar.gz lombok-37cbe2d3f9cd8737b46b6bfb263277f7b7cd7861.tar.bz2 lombok-37cbe2d3f9cd8737b46b6bfb263277f7b7cd7861.zip |
Fix for issue 376 for Eclipse
Diffstat (limited to 'test/transform')
-rw-r--r-- | test/transform/resource/after-ecj/GetterLazyBoolean.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/transform/resource/after-ecj/GetterLazyBoolean.java b/test/transform/resource/after-ecj/GetterLazyBoolean.java index 6f186ab3..689101c8 100644 --- a/test/transform/resource/after-ecj/GetterLazyBoolean.java +++ b/test/transform/resource/after-ecj/GetterLazyBoolean.java @@ -1,4 +1,4 @@ -class GetterLazyBoolean { +@lombok.EqualsAndHashCode(of = "booleanValue") @lombok.ToString(of = "booleanValue") class GetterLazyBoolean { private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Boolean>> booleanValue = new java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Boolean>>(); private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Boolean>> otherBooleanValue = new java.util.concurrent.atomic.AtomicReference<java.util.concurrent.atomic.AtomicReference<java.lang.Boolean>>(); public @java.lang.SuppressWarnings("all") boolean isBooleanValue() { @@ -43,7 +43,7 @@ class GetterLazyBoolean { final @java.lang.SuppressWarnings("all") GetterLazyBoolean other = (GetterLazyBoolean) o; if ((! other.canEqual((java.lang.Object) this))) return false; - if (this.isBooleanValue() != other.isBooleanValue()) + if ((this.isBooleanValue() != other.isBooleanValue())) return false; return true; } @@ -53,7 +53,7 @@ class GetterLazyBoolean { public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() { final int PRIME = 31; int result = 1; - result = result * PRIME + (this.isBooleanValue() ? 1231 : 1237); + result = ((result * PRIME) + (this.isBooleanValue() ? 1231 : 1237)); return result; } public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { |