/** * Creates and returns a copy of this object. The precise meaning of "copy" may depend on the * class of the object. The general intent is that, for any object <tt>x</tt>, the expression: */ protected Object clone() { Alarm ret = null; try { ret = (Alarm) super.clone(); ret.pcs = null; ret.setTime((Time) time.clone()); } catch (CloneNotSupportedException e) { e.printStackTrace(); } return ret; }