All Downloads are FREE. Search and download functionalities are using the official Maven repository.

resources.report.rules.findbugs.SIC_THREADLOCAL_DEADLY_EMBRACE.html Maven / Gradle / Ivy



SIC_THREADLOCAL_DEADLY_EMBRACE

SIC: Deadly embrace of non-static inner class and thread local (SIC_THREADLOCAL_DEADLY_EMBRACE)

This class is an inner class, but should probably be a static inner class. As it is, there is a serious danger of a deadly embrace between the inner class and the thread local in the outer class. Because the inner class isn't static, it retains a reference to the outer class. If the thread local contains a reference to an instance of the inner class, the inner and outer instance will both be reachable and not eligible for garbage collection.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy