mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 16:15:16 +00:00
[i659] suppression of @ConstructorProperties should use config instead. Also modified all onX examples to use two underscores.
This commit is contained in:
1 parent
4d24542dac
commit
d41ef4bf83
26 files changed
+225
-54
No files matched your search
@@ -0,0 +1,34 @@
|
||||
@lombok.Data class DataConfiguration {
|
||||
final int x;
|
||||
public @java.lang.SuppressWarnings("all") int getX() {
|
||||
return this.x;
|
||||
}
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
|
||||
if ((o == this))
|
||||
return true;
|
||||
if ((! (o instanceof DataConfiguration)))
|
||||
return false;
|
||||
final @java.lang.SuppressWarnings("all") DataConfiguration other = (DataConfiguration) o;
|
||||
if ((! other.canEqual((java.lang.Object) this)))
|
||||
return false;
|
||||
if ((this.getX() != other.getX()))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
protected @java.lang.SuppressWarnings("all") boolean canEqual(final java.lang.Object other) {
|
||||
return (other instanceof DataConfiguration);
|
||||
}
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
|
||||
final int PRIME = 59;
|
||||
int result = 1;
|
||||
result = ((result * PRIME) + this.getX());
|
||||
return result;
|
||||
}
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
|
||||
return (("DataConfiguration(x=" + this.getX()) + ")");
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") DataConfiguration(final int x) {
|
||||
super();
|
||||
this.x = x;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user