Synopsis: | These rules deal with different problems that can occur with finalizers. |
Description: |
These rules deal with different problems that can occur with finalizers. |
Name | Checked | Synopsis |
---|---|---|
Finalizer1 | ![]() |
Avoid empty finalize methods |
Finalizer2 | ![]() |
Finalize should do something besides just calling super.finalize() |
Finalizer3 | ![]() |
Finalize methods should not be overloaded |
Finalizer4 | ![]() |
Last statement in finalize method should be a call to super.finalize() |
Finalizer5 | ![]() |
If you override finalize(), make it protected |
Finalizer6 | ![]() |
Avoid calling finalize() explicitly |
Finalizer100 | ![]() |
Don't use finalizers. |