Beispiel
public class
ClassA
implements
Cloneable
{
public final
void clone
throws
CloneNotSupportedException () {
//...
}
Lösung
Befolgen Sie die ordnungsgemäße Signatur für die Methode 'clone'
.
public class
ClassA
implements
Cloneable
{
public final
Object clone
throws
CloneNotSupportedException () {
//...
}
}