...
The class is made final to prevent subclasses from overriding the clone()
method. This enables the class to be accessed and used, while preventing the fields from being modified, and complies with OBJ36-J. Provide mutable classes with a clone method when to allow passing instances to untrusted code safely.
Noncompliant Code Example
...