Reports return statements returning an instance of an anonymous, local, or inner class.
Such instances keep an implicit reference to the outer instance.
Which means the instance can prevent the outer instance from being garbage collected.
Any caller of a method which returns such an instance might cause a memory leak by holding on to the instance returned.
Use the checkbox below to ignore returns from protected or package-private methods.
Returns from private methods are always ignored.