Changeset 467 for trunk/quest-core-tasktrees/src/main/java/de/ugoe/cs/quest/tasktrees/treeimpl/TaskTreeImpl.java
- Timestamp:
- 07/25/12 11:58:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-tasktrees/src/main/java/de/ugoe/cs/quest/tasktrees/treeimpl/TaskTreeImpl.java
r439 r467 101 101 } 102 102 103 //----------------------------------------------------------------------------------------------- 104 /* (non-Javadoc) 105 * @see java.lang.Object#clone() 106 */ 107 //----------------------------------------------------------------------------------------------- 108 @Override 109 public TaskTreeImpl clone() 110 { 111 TaskTreeImpl clone = null; 112 try 113 { 114 clone = (TaskTreeImpl) super.clone(); 115 116 clone.mRootNode = mRootNode.clone(); 117 118 // the clone will create the task map itself, when it is first retrieved 119 clone.mTaskMap = null; 120 121 } 122 catch (CloneNotSupportedException e) 123 { 124 // this should never happen. Therefore simply dump the exception 125 e.printStackTrace(); 126 } 127 128 return clone; 129 } 130 103 131 }
Note: See TracChangeset
for help on using the changeset viewer.