mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 01:19:49 +00:00
Line: Improve toString().
This commit is contained in:
parent
bab9b0d39f
commit
679915bed3
1 changed files with 2 additions and 2 deletions
|
@ -124,11 +124,11 @@ public final class Line implements Serializable, Comparable<Line> {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return MoreObjects.toStringHelper(this) //
|
||||
return MoreObjects.toStringHelper(this).omitNullValues() //
|
||||
.addValue(network) //
|
||||
.addValue(product) //
|
||||
.addValue(label) //
|
||||
.addValue(name) //
|
||||
.addValue("'"+ name + "'") //
|
||||
.toString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue