diff options
author | Roel Spilker <r.spilker@gmail.com> | 2017-03-23 00:16:47 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2017-03-23 00:16:47 +0100 |
commit | 969ed9125e239380ce70b1c0abc78abc614eebaa (patch) | |
tree | cee9c47a2cf7d07f6edaa4d62aa000860f971aa2 /test | |
parent | 3b1792c39701fad8a8abc8d0d508b90ab2832e05 (diff) | |
download | lombok-969ed9125e239380ce70b1c0abc78abc614eebaa.tar.gz lombok-969ed9125e239380ce70b1c0abc78abc614eebaa.tar.bz2 lombok-969ed9125e239380ce70b1c0abc78abc614eebaa.zip |
[i1329] respect configuration for field access when generating equals, hashCode and toString from Data and Value
Diffstat (limited to 'test')
3 files changed, 8 insertions, 6 deletions
diff --git a/test/transform/resource/after-delombok/DataConfiguration.java b/test/transform/resource/after-delombok/DataConfiguration.java index aadb35b6..5057e9ed 100644 --- a/test/transform/resource/after-delombok/DataConfiguration.java +++ b/test/transform/resource/after-delombok/DataConfiguration.java @@ -18,7 +18,7 @@ class DataConfiguration { if (!(o instanceof DataConfiguration)) return false; final DataConfiguration other = (DataConfiguration) o; if (!other.canEqual((java.lang.Object) this)) return false; - if (this.getX() != other.getX()) return false; + if (this.x != other.x) return false; return true; } @java.lang.SuppressWarnings("all") @@ -32,13 +32,13 @@ class DataConfiguration { public int hashCode() { final int PRIME = 59; int result = 1; - result = result * PRIME + this.getX(); + result = result * PRIME + this.x; return result; } @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public java.lang.String toString() { - return "DataConfiguration(x=" + this.getX() + ")"; + return "DataConfiguration(x=" + this.x + ")"; } } diff --git a/test/transform/resource/after-ecj/DataConfiguration.java b/test/transform/resource/after-ecj/DataConfiguration.java index 4ca1f093..942613ca 100644 --- a/test/transform/resource/after-ecj/DataConfiguration.java +++ b/test/transform/resource/after-ecj/DataConfiguration.java @@ -11,7 +11,7 @@ final DataConfiguration other = (DataConfiguration) o; if ((! other.canEqual((java.lang.Object) this))) return false; - if ((this.getX() != other.getX())) + if ((this.x != other.x)) return false; return true; } @@ -21,11 +21,11 @@ public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") int hashCode() { final int PRIME = 59; int result = 1; - result = ((result * PRIME) + this.getX()); + result = ((result * PRIME) + this.x); return result; } public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") java.lang.String toString() { - return (("DataConfiguration(x=" + this.getX()) + ")"); + return (("DataConfiguration(x=" + this.x) + ")"); } public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") DataConfiguration(final int x) { super(); diff --git a/test/transform/resource/before/DataConfiguration.java b/test/transform/resource/before/DataConfiguration.java index 660d6d18..8b9657f9 100644 --- a/test/transform/resource/before/DataConfiguration.java +++ b/test/transform/resource/before/DataConfiguration.java @@ -1,4 +1,6 @@ //CONF: lombok.anyConstructor.suppressConstructorProperties = true +//CONF: lombok.toString.doNotUseGetters = true +//CONF: lombok.equalsAndHashCode.doNotUseGetters = true @lombok.Data class DataConfiguration { final int x; |