-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Description
Hi,
is it possible to have lombok generate a linefeed/carriage return at the beginning of the toString() method. Something like:
public String toString() {
return "\nFoo(id=" + this.getId() + ", year=" + this.getYear() + ")";
}
instead of:
public String toString() {
return "Foo(id=" + this.getId() + ", year=" + this.getYear() + ")";
}
Reason:
This would make the readiblility during debugging much easier.
If I have an ArrayList of class Foo, I can see the N entries of Foo in the ArrayList in a very structured way. Each entry gets a new line. This is very convenient, if Foo has a lot of attributes.
As not every user would like to have this: perhaps it's possible to make this configurable?
Thanks for taking this into consideration!
Metadata
Metadata
Assignees
Labels
No labels