mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 22:15:11 +00:00
[fixes #1918] toString now supports a configkey to tell it how to deal with super.
This commit is contained in:
1 parent
2c0ec93155
commit
a73965b2b7
9 files changed
+101
-22
No files matched your search
@@ -0,0 +1,15 @@
|
||||
class ToStringAutoSuperWithNoParent {
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public java.lang.String toString() {
|
||||
return "ToStringAutoSuperWithNoParent()";
|
||||
}
|
||||
}
|
||||
|
||||
class ToStringAutoSuperWithParent extends ToStringAutoSuperWithNoParent {
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public java.lang.String toString() {
|
||||
return "ToStringAutoSuperWithParent(super=" + super.toString() + ")";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user