Exemplo n.º 1
0
 @Override
 public Object clone() {
   Task t = null;
   try {
     t = new Task((Date) this.date.clone());
     if (this.name != null) {
       t.name = this.name;
     }
     if (this.description != null) {
       t.description = this.description;
     }
     if (this.contacts != null) {
       t.contacts = this.contacts;
     }
   } catch (Exception e) {
     log.error("Something wrong in cloning.", e);
   }
   return t;
 }