Reports construction of (temporary) new objects inside an equals(), hashCode(), compareTo or Comparator.compare() method. This can cause significant performance problems when for example objects of classes with such constructs are added to a Set or Map, where these methods will be called often. This inspection will not warn when the objects are created in a throw or assert statement.

New in 2016.2