Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-02-11 09:12:30 +0000
committerLars Vogel2019-02-11 09:12:30 +0000
commitf5f7312ce23a5b3ee5699633de74e1496deb1a4f (patch)
treed76fceacebf0120cc36fcb74019abfcd24ef3234
parentdbeefa2b5e7a4ab59c87a1acb1e77420937f90c8 (diff)
downloadrt.equinox.framework-f5f7312ce23a5b3ee5699633de74e1496deb1a4f.tar.gz
rt.equinox.framework-f5f7312ce23a5b3ee5699633de74e1496deb1a4f.tar.xz
rt.equinox.framework-f5f7312ce23a5b3ee5699633de74e1496deb1a4f.zip
Use ArrrayList instead of Vector in org.eclipse.equinox.launcher.Main
Change-Id: I25a7c6bc473eecd90411906727abe8b0455ad400 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
index 0ed1e4b5b..2e2510c0b 100644
--- a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
+++ b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
@@ -1420,9 +1420,9 @@ public class Main {
* @param argString the arguments string
*/
public static void main(String argString) {
- Vector<String> list = new Vector<>(5);
+ ArrayList<String> list = new ArrayList<>(5);
for (StringTokenizer tokens = new StringTokenizer(argString, " "); tokens.hasMoreElements();) //$NON-NLS-1$
- list.addElement(tokens.nextToken());
+ list.add(tokens.nextToken());
main(list.toArray(new String[list.size()]));
}

Back to the top