![JAR search and dependency download from the Maven repository](/logo.png)
resources.report.rules.findbugs.FI_EXPLICIT_INVOCATION.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sanity4j Show documentation
Show all versions of sanity4j Show documentation
Sanity4J was created to simplify running multiple static code
analysis tools on the Java projects. It provides a single entry
point to run all the selected tools and produce a consolidated
report, which presents all findings in an easily accessible
manner.
The newest version!
FI: Explicit invocation of finalizer (FI_EXPLICIT_INVOCATION)
FI: Explicit invocation of finalizer (FI_EXPLICIT_INVOCATION)
This method contains an explicit invocation of the finalize()
method on an object. Because finalizer methods are supposed to be
executed once, and only by the VM, this is a bad idea.
If a connected set of objects beings finalizable, then the VM will invoke the
finalize method on all the finalizable object, possibly at the same time in different threads.
Thus, it is a particularly bad idea, in the finalize method for a class X, invoke finalize
on objects referenced by X, because they may already be getting finalized in a separate thread.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy