mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 18:15:55 +00:00
[i1329] respect configuration for field access when generating equals, hashCode and toString from Data and Value
This commit is contained in:
1 parent
3b1792c397
commit
969ed9125e
8 files changed
+27
-10
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user