Change-Id: If697e6208f1abd387a8678a3c7f30561dc6f62d5
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/44775
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
String[] availableTraceTypes = TmfTraceType.getAvailableTraceTypes();
String[] traceTypeList = new String[availableTraceTypes.length + 1];
traceTypeList[0] = TRACE_TYPE_AUTO_DETECT;
- for (int i = 0; i < availableTraceTypes.length; i++) {
- traceTypeList[i + 1] = availableTraceTypes[i];
- }
+ System.arraycopy(availableTraceTypes, 0, traceTypeList, 1, availableTraceTypes.length);
combo.setItems(traceTypeList);
combo.select(0);
for (int i = 1; i < traceTypeList.length; i++) {