예제 #1
0
파일: Task.java 프로젝트: 7Silvan/ncl
 @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;
 }