public class
ClassA
implements Cloneable
{ public final Object clone throws CloneNotSupportedException () {
//...
}
public final void clone(){
//...
}
}
Solution
There should be only one clone method.
public class
ClassA
implements Cloneable
{ public final Object clone throws CloneNotSupportedException () {
//...
}
}