[Codenarc-user] implementing Cloneable
Brought to you by:
chrismair
From: Roshan D. <ros...@gm...> - 2011-07-04 12:28:50
|
Hi, Can someone help me see what is wrong in the following code: ------------------------------------------------------------------------------- class Dummy implements Cloneable { Object clone() { super.clone() } } ------------------------------------------------------------------------------- CodeNarc output shows and I can't figure out how to make it happy: ------------------------------------------------------------------------------- line: 1 CloneableWithoutClone The class Dummy implements Cloneable but does not define a proper clone() method source: class Dummy implements Cloneable { ------------------------------------------------------------------------------- -- Roshan Blog: http://roshandawrani.wordpress.com/ Twitter: @roshandawrani <http://twitter.com/roshandawrani> Skype: roshandawrani |