public class
ClassA
implements Cloneable
{ public final Object clone throws CloneNotSupportedException () {
//...
}
public final void clone(){
//...
}
}
Řešení
Měla by existovat pouze jedna metoda clone.
public class
ClassA
implements Cloneable
{ public final Object clone throws CloneNotSupportedException () {
//...
}
}