Commit 9a65d34e authored by Simon Barner's avatar Simon Barner
Browse files

Avoid unneeded cast

refs 2658
parent fd298c01
......@@ -47,14 +47,12 @@ public class ResourceScheduleAllocationPropertySection extends ResourceScheduleP
@Override
protected List<IPlatformResource> getValues(ResourceSchedule input) {
AllocationTableCollection atc =
(AllocationTableCollection)getParentElement(input, SystemSchedule.class, true)
.getAllocationTableCollection();
getParentElement(input, SystemSchedule.class, true).getAllocationTableCollection();
if(atc == null) {
return emptyList();
}
PartitionToHardwareAllocationTable pa2hw =
getPartitionToHardwareAllocationTable(atc);
PartitionToHardwareAllocationTable pa2hw = getPartitionToHardwareAllocationTable(atc);
if(pa2hw == null) {
return emptyList();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment