Back to Error Prone

ObjectToString

docs/bugpattern/ObjectToString.md

2.49.0235 B
Original Source

Calling toString on objects that don't override toString() doesn't provide useful information (just the class name and the hashCode()).

Consider overriding toString() function to return a meaningful String describing the object.