diff options
author | Lars Vogel | 2019-02-11 08:20:43 +0000 |
---|---|---|
committer | Lars Vogel | 2019-02-11 08:21:37 +0000 |
commit | 31d300eb6d0cf8e49dbb44e7361d23a9c3815c1c (patch) | |
tree | af6ba0ccc0749bf7a3f7d74d03e5ad0e51fe2de7 | |
parent | 3e0f073833381876c4c10d35b78be7a6057682b9 (diff) | |
download | rt.equinox.framework-31d300eb6d0cf8e49dbb44e7361d23a9c3815c1c.tar.gz rt.equinox.framework-31d300eb6d0cf8e49dbb44e7361d23a9c3815c1c.tar.xz rt.equinox.framework-31d300eb6d0cf8e49dbb44e7361d23a9c3815c1c.zip |
Use isEmpty instead of .equals("") for String check in Main launcher
Change-Id: I23b2703a3799323a17ffe89290e5472033b50472
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r-- | bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java | 3 |
1 files changed, 2 insertions, 1 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 05ddebd92..5c9ef228c 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 @@ -775,8 +775,9 @@ public class Main { StringTokenizer tokens = new StringTokenizer(prop, ","); //$NON-NLS-1$ while (tokens.hasMoreTokens()) { String token = tokens.nextToken().trim(); - if (!token.equals("")) //$NON-NLS-1$ + if (!token.isEmpty()) { list.add(token); + } } return list.isEmpty() ? new String[0] : list.toArray(new String[list.size()]); } |