tmf remote: use System.arraycopy instead of manually coppy array.
authorBernd Hufmann <Bernd.Hufmann@ericsson.com>
Fri, 27 Mar 2015 16:46:00 +0000 (12:46 -0400)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Fri, 27 Mar 2015 19:48:55 +0000 (15:48 -0400)
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
org.eclipse.tracecompass.tmf.remote.ui/src/org/eclipse/tracecompass/internal/tmf/remote/ui/wizards/fetch/preferences/RemoteProfilesPreferencePage.java

index f6a7305c51287dbd752ac24f3ad584b9e80c2eeb..030f4b588759637518e7564d70cc84e822acedff 100644 (file)
@@ -890,9 +890,7 @@ public class RemoteProfilesPreferencePage extends PreferencePage implements IWor
                 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++) {
This page took 0.027535 seconds and 5 git commands to generate.