diff options
author | Lars Vogel | 2019-02-11 09:05:22 +0000 |
---|---|---|
committer | Lars Vogel | 2019-02-11 09:05:22 +0000 |
commit | dbeefa2b5e7a4ab59c87a1acb1e77420937f90c8 (patch) | |
tree | df043394f3bda5120fa3871db281f6612bc71f5f | |
parent | 31d300eb6d0cf8e49dbb44e7361d23a9c3815c1c (diff) | |
download | rt.equinox.framework-dbeefa2b5e7a4ab59c87a1acb1e77420937f90c8.tar.gz rt.equinox.framework-dbeefa2b5e7a4ab59c87a1acb1e77420937f90c8.tar.xz rt.equinox.framework-dbeefa2b5e7a4ab59c87a1acb1e77420937f90c8.zip |
Put single-quotes around '/' to use the faster "lastIndexOf(char)"
method
Change-Id: I1402135d3c6e1c9af34d1b662328097382656777
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r-- | bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java | 2 |
1 files changed, 1 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 5c9ef228c..0ed1e4b5b 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 @@ -2013,7 +2013,7 @@ public class Main { path = new String(chars); } if (path.toLowerCase().endsWith(".jar")) //$NON-NLS-1$ - path = path.substring(0, path.lastIndexOf("/") + 1); //$NON-NLS-1$ + path = path.substring(0, path.lastIndexOf('/') + 1); //$NON-NLS-1$ if (path.toLowerCase().endsWith("/plugins/")) //$NON-NLS-1$ path = path.substring(0, path.length() - "/plugins/".length()); //$NON-NLS-1$ try { |