mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 12:15:00 +00:00
add test to verify config key callSuper=call works with Value
This commit is contained in:
1 parent
6cec66eb2b
commit
ea219cd7ce
3 files changed
+80
No files matched your search
@@ -0,0 +1,34 @@
|
||||
class ValueParent {
|
||||
ValueParent() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
final @lombok.Value class ValueCallSuper extends ValueParent {
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") boolean equals(final java.lang.Object o) {
|
||||
if ((o == this))
|
||||
return true;
|
||||
if ((! (o instanceof ValueCallSuper)))
|
||||
return false;
|
||||
final ValueCallSuper other = (ValueCallSuper) o;
|
||||
if ((! other.canEqual((java.lang.Object) this)))
|
||||
return false;
|
||||
if ((! super.equals(o)))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
protected @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") boolean canEqual(final java.lang.Object other) {
|
||||
return (other instanceof ValueCallSuper);
|
||||
}
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") int hashCode() {
|
||||
final int PRIME = 59;
|
||||
int result = 1;
|
||||
result = ((result * PRIME) + super.hashCode());
|
||||
return result;
|
||||
}
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") java.lang.String toString() {
|
||||
return "ValueCallSuper()";
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") ValueCallSuper() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user