Avoid creation of array by reflection
FEA: ItEr74S04BugFixing
This commit is contained in:
parent
07d335ab17
commit
8671d73a8c
5 changed files with 11 additions and 6 deletions
|
|
@ -854,7 +854,7 @@ public abstract class ResourceAllocation<T extends DayAssignment> extends
|
|||
.getRightSlice(durationsByDay);
|
||||
AvailabilityTimeLine availability = getAvailability();
|
||||
List<T> assignments = createAssignments(interval, availability,
|
||||
rightSlice.toArray(new EffortDuration[0]));
|
||||
rightSlice.toArray(new EffortDuration[rightSlice.size()]));
|
||||
interval.resetAssignments(assignments);
|
||||
}
|
||||
|
||||
|
|
@ -880,7 +880,8 @@ public abstract class ResourceAllocation<T extends DayAssignment> extends
|
|||
.getRightSlice(durationsByDay);
|
||||
AvailabilityTimeLine availability = getAvailability();
|
||||
createAssignments(interval, availability,
|
||||
rightSlice.toArray(new EffortDuration[0]));
|
||||
rightSlice.toArray(new EffortDuration[rightSlice
|
||||
.size()]));
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -218,7 +218,8 @@ public class CustomMenuController extends Div implements IMenuItemsRegister {
|
|||
|
||||
private CustomMenuController topItem(String name, String url,
|
||||
String helpUri, Collection<? extends CustomMenuItem> items) {
|
||||
return topItem(name, url, helpUri, items.toArray(new CustomMenuItem[0]));
|
||||
return topItem(name, url, helpUri,
|
||||
items.toArray(new CustomMenuItem[items.size()]));
|
||||
}
|
||||
|
||||
private CustomMenuController topItem(String name, String url,
|
||||
|
|
|
|||
|
|
@ -165,7 +165,8 @@ public class LabelTypeModel extends IntegrationEntityModel implements
|
|||
}
|
||||
}
|
||||
if (!result.isEmpty()) {
|
||||
throw new ValidationException(result.toArray(new InvalidValue[0]));
|
||||
throw new ValidationException(
|
||||
result.toArray(new InvalidValue[result.size()]));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -195,7 +195,8 @@ public class LimitingResourcesController extends GenericForwardComposer {
|
|||
}
|
||||
|
||||
private void addCommands(LimitingResourcesPanel limitingResourcesPanel) {
|
||||
limitingResourcesPanel.add(commands.toArray(new IToolbarCommand[0]));
|
||||
limitingResourcesPanel.add(commands
|
||||
.toArray(new IToolbarCommand[commands.size()]));
|
||||
}
|
||||
|
||||
private TimeTracker buildTimeTracker() {
|
||||
|
|
|
|||
|
|
@ -255,7 +255,8 @@ public class ResourceLoadController implements Composer {
|
|||
}
|
||||
|
||||
private void addCommands(ResourcesLoadPanel resourcesLoadPanel) {
|
||||
resourcesLoadPanel.add(commands.toArray(new IToolbarCommand[0]));
|
||||
resourcesLoadPanel.add(commands.toArray(new IToolbarCommand[commands
|
||||
.size()]));
|
||||
}
|
||||
|
||||
private TimeTracker buildTimeTracker() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue