Non-final classes containing methods that perform security checks can be compromised if a malicious subclass overrides the methods and omits the checks. For this reason, it is recommended that the these methods be prohibited must be declared private or final to prevent them from being extended by declaring them private
or final
.
Noncompliant Code Example
...