Return empty list instead of throwing an exception

FEA: ItEr75S11PreventLooseChanges
This commit is contained in:
Óscar González Fernández 2011-07-28 17:20:35 +02:00
parent 00db73a60f
commit 0454254330
2 changed files with 2 additions and 2 deletions

View file

@ -196,7 +196,7 @@ public class Task extends TaskElement implements ITaskPositionConstrained {
@Override
public List<TaskElement> getChildren() {
throw new UnsupportedOperationException();
return Collections.emptyList();
}
public Set<ResourceAllocation<?>> getSatisfiedResourceAllocations() {

View file

@ -79,7 +79,7 @@ public class TaskMilestone extends TaskElement implements ITaskPositionConstrain
@Override
public List<TaskElement> getChildren() {
throw new UnsupportedOperationException();
return Collections.emptyList();
}
public CalculatedValue getCalculatedValue() {