Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: rewrote the intro to make this a conformance requirement (consistent with title)

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

...