mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 14:16:39 +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
@@ -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 + ")";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user