Any method named finalize returning void will be reported by S1174 , while it does not mean that it's coming from Object.
abstract class ClassWithFinalize { abstract public void finalize(String arg) throws Throwable; // FP } class ObjectFinalize_Not_Object_Finalize extends ClassWithFinalize { @Override public void finalize(String arg) throws Throwable { // FP } }
- relates to
-
RSPEC-1174 "Object.finalize()" should remain protected (versus public) when overriding
- Active
- links to