@SuppressWarnings("MethodDoesntCallSuperMethod") @Override public Object clone() { final BwContact sp = new BwContact(); super.copyTo(sp); sp.setCn((BwString)getCn().clone()); sp.setPhone(getPhone()); sp.setEmail(getEmail()); sp.setLink(getLink()); return sp; } }
@Override public Object clone() { final BwCategory cat = new BwCategory(); super.copyTo(cat); cat.setWord((BwString)getWord().clone()); if (getDescription() != null) { cat.setDescription((BwString)getDescription().clone()); } cat.setName(getName()); return cat; } }
@SuppressWarnings("MethodDoesntCallSuperMethod") @Override public Object clone() { final BwLocation loc = new BwLocation(); super.copyTo(loc); if (getAddress() != null) { loc.setAddress((BwString)getAddress().clone()); } if (getSubaddress() != null) { loc.setSubaddress((BwString)getSubaddress().clone()); } loc.setLink(getLink()); return loc; }