Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add empty finalizers to non-final classes that throw exceptions
A new Spotbugs error indicated that nefarious subclasses may leave the superclass in a half-initialized state through a "finalizer attack". While no exploit is known, fixing this is the right thing to do. Moreover, empty finalizers may even be a performance optimization; see https://stuartmarks.wordpress.com/2022/04/27/why-write-an-empty-finalize-method/
- Loading branch information