Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

One noteworthy exception to this guideline pertains to classes that implement the java.lang.Cloneable interface. In these cases, the accessibility of the Object.clone method should be increased from protected to public.

Risk Assessment

Subclassing allows access restrictions to be weakened, possibly compromising the security of a Java application.

...