Пример
public class
ClassA
implements
Cloneable
{
public
Object clone
throws
CloneNotSupportedException () {
//...
}
}
Исправление
Всегда объявляйте метод clone как
final
.
public class
ClassA
implements
Cloneable
{
public final
Object clone
throws
CloneNotSupportedException () {
//...
}
}