Przykład
public class
ClassA
implements
Cloneable
{
public final
void clone
throws
CloneNotSupportedException () {
//...
}
Rozwiązanie
Utwórz odpowiednią sygnaturę dla metody clone
.
public class
ClassA
implements
Cloneable
{
public final
Object clone
throws
CloneNotSupportedException () {
//...
}
}