...
Code Block | ||
---|---|---|
| ||
final class SubClass extends Base { public void finalize() { // ... } } |
Compliant
...
Solution
This compliant solution correctly declares the finalize()
method protected
. It is not possible to further limit the accessibility as Object
's finalize
method itself is declared protected
.
...