diff options
author | Lars Vogel | 2019-02-08 08:29:27 +0000 |
---|---|---|
committer | Lars Vogel | 2019-02-08 09:55:44 +0000 |
commit | 09444c9c0cc8aab261443342da69f9e44aa5cb2c (patch) | |
tree | 97422124469f63fd1543204bbf78a89fffdf8b63 | |
parent | 4c59ccf048823e96cc8a8bab125a65421720e4e5 (diff) | |
download | rt.equinox.framework-09444c9c0cc8aab261443342da69f9e44aa5cb2c.tar.gz rt.equinox.framework-09444c9c0cc8aab261443342da69f9e44aa5cb2c.tar.xz rt.equinox.framework-09444c9c0cc8aab261443342da69f9e44aa5cb2c.zip |
Use ArrayList instead of Vector in Main#getArrayFromList
Change-Id: I2218934eac73b7143f715799c72dc9a6eb4ca588
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r-- | bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java | 4 |
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 042b37fe7..46186d271 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 @@ -771,12 +771,12 @@ public class Main { protected String[] getArrayFromList(String prop) { if (prop == null || prop.trim().equals("")) //$NON-NLS-1$ return new String[0]; - Vector<String> list = new Vector<>(); + ArrayList<String> list = new ArrayList<>(); StringTokenizer tokens = new StringTokenizer(prop, ","); //$NON-NLS-1$ while (tokens.hasMoreTokens()) { String token = tokens.nextToken().trim(); if (!token.equals("")) //$NON-NLS-1$ - list.addElement(token); + list.add(token); } return list.isEmpty() ? new String[0] : list.toArray(new String[list.size()]); } |