Reports anonymous classes which could be transformed to constructor or factory method call accepting lambda expression.
The following classes are reported by this inspection:
- ThreadLocal anonymous classes having initialValue() method (could be replaced with ThreadLocal.withInitial)
- Thread anonymous classes having run() method (could be replaced with new Thread(Runnable)
New in 2016.3