Inspectopedia
 
2024.3

Call to default 'toString()'

Warning
New
Last modified: 03 December 2024

Reports calls to toString() that use the default implementation from java.lang.Object.

The default implementation is rarely intended but may be used by accident.

Calls to toString() on objects with java.lang.Object, interface or abstract class type are ignored by this inspection.

Example: