Przykład

public class ClassA implements Cloneable {
public Object clone throws CloneNotSupportedException () {
//...
}
}


Rozwiązanie
Zawsze deklaruj metodę clone z modyfikatorem final.

public class ClassA implements Cloneable {
public final Object clone throws CloneNotSupportedException () {
//...
}
}