Changeset 2126 for trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/Task.java
- Timestamp:
- 05/03/16 17:06:33 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/Task.java
r1400 r2126 81 81 * </p> 82 82 */ 83 private Collection<ITaskInstance> instances = new HashSet<ITaskInstance>(); 83 private final Collection<ITaskInstance> instances = new HashSet<ITaskInstance>(); 84 85 /** 86 * <p> 87 * the unmodifiable view on the instances of this task 88 * </p> 89 */ 90 private final Collection<ITaskInstance> unmodifiableInstances; 84 91 85 92 /** … … 107 114 throw new IllegalArgumentException("type must not be null"); 108 115 } 116 117 unmodifiableInstances = Collections.unmodifiableCollection(instances); 109 118 } 110 119 … … 154 163 @Override 155 164 public Collection<ITaskInstance> getInstances() { 156 return Collections.unmodifiableCollection(instances);165 return unmodifiableInstances; 157 166 } 158 167
Note: See TracChangeset
for help on using the changeset viewer.