Reports Runnable passed to Cleaner.register() capturing reference that leads to memory leak.
Possible sources of this problem:
- Lambda using non static methods, fields or this itself
- Non static inner class (anonymous or not) always captures this reference
- Instance method reference
- Access to outer class non static members from non static inner class
This inspection is available since Java 9 only.
New in 2018.1