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:


  class Bar {
      void foo1(Bar bar) {
          String s = bar.toString(); // warning
          /* ... */
      }

      void foo2(Object obj) {
          String s = obj.toString(); // no warning here
          /* ... */
      }
  }