diff options
author | Alexander Kurtakov | 2020-01-14 16:44:30 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2020-01-14 16:44:30 +0000 |
commit | fab40348ac8b29474081db323c5fd61a9b6422e4 (patch) | |
tree | 1655e767ffe0e246b65b39f3bcee47f1b978a6cc | |
parent | efafb7e2c7ec861b77ffe887139e09ac9a7e1ea3 (diff) | |
download | rt.equinox.bundles-fab40348ac8b29474081db323c5fd61a9b6422e4.tar.gz rt.equinox.bundles-fab40348ac8b29474081db323c5fd61a9b6422e4.tar.xz rt.equinox.bundles-fab40348ac8b29474081db323c5fd61a9b6422e4.zip |
Remove unnecessary NON-NLS.Y20200121-0055Y20200120-2315Y20200120-0020I20200120-1800I20200120-0715I20200120-0530I20200120-0445I20200120-0355I20200120-0115I20200119-2330I20200119-1800I20200118-1800I20200117-1800I20200116-1800I20200116-0930I20200116-0330I20200116-0310I20200115-1800I20200114-1805
Change-Id: Ib257e2f2f64c3dafe804426fb3d90b37d840639c
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
6 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/boot/PlatformURLConnection.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/boot/PlatformURLConnection.java index acf5231fa..424683e00 100644 --- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/boot/PlatformURLConnection.java +++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/boot/PlatformURLConnection.java @@ -299,7 +299,7 @@ public abstract class PlatformURLConnection extends URLConnection { isInCache = true; } else { // attempt to cache - int ix = file.lastIndexOf('/'); //$NON-NLS-1$ + int ix = file.lastIndexOf('/'); tmp = file.substring(ix + 1); tmp = cacheLocation + filePrefix + (new java.util.Date()).getTime() + "_" + tmp; //$NON-NLS-1$ tmp = tmp.replace(File.separatorChar, '/'); diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/boot/PlatformURLHandler.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/boot/PlatformURLHandler.java index 16da49af1..90c336eaf 100644 --- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/boot/PlatformURLHandler.java +++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/boot/PlatformURLHandler.java @@ -51,7 +51,7 @@ public class PlatformURLHandler extends AbstractURLStreamHandlerService { String spec = url.getFile().trim(); if (spec.startsWith("/")) //$NON-NLS-1$ spec = spec.substring(1); - int ix = spec.indexOf('/'); //$NON-NLS-1$ + int ix = spec.indexOf('/'); if (ix == -1) throw new MalformedURLException(NLS.bind(CommonMessages.url_invalidURL, url.toExternalForm())); diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLFragmentConnection.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLFragmentConnection.java index f06d296ca..cc8bf0091 100644 --- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLFragmentConnection.java +++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLFragmentConnection.java @@ -49,7 +49,7 @@ public class PlatformURLFragmentConnection extends PlatformURLConnection { spec = spec.substring(1); if (!spec.startsWith(FRAGMENT)) throw new IOException(NLS.bind(CommonMessages.url_badVariant, url)); - int ix = spec.indexOf('/', FRAGMENT.length() + 1); //$NON-NLS-1$ + int ix = spec.indexOf('/', FRAGMENT.length() + 1); String ref = ix == -1 ? spec.substring(FRAGMENT.length() + 1) : spec.substring(FRAGMENT.length() + 1, ix); String id = getId(ref); Activator activator = Activator.getDefault(); diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLMetaConnection.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLMetaConnection.java index b86d55885..6ac800962 100644 --- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLMetaConnection.java +++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLMetaConnection.java @@ -40,7 +40,7 @@ public class PlatformURLMetaConnection extends PlatformURLConnection { spec = spec.substring(1); if (!spec.startsWith(META)) throw new IOException(NLS.bind(CommonMessages.url_badVariant, url.toString())); - int ix = spec.indexOf('/', META.length() + 1); //$NON-NLS-1$ + int ix = spec.indexOf('/', META.length() + 1); String ref = ix == -1 ? spec.substring(META.length() + 1) : spec.substring(META.length() + 1, ix); String id = getId(ref); Activator activator = Activator.getDefault(); diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLPluginConnection.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLPluginConnection.java index c371d120c..fa781f386 100644 --- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLPluginConnection.java +++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/PlatformURLPluginConnection.java @@ -53,7 +53,7 @@ public class PlatformURLPluginConnection extends PlatformURLConnection { spec = spec.substring(1); if (!spec.startsWith(PLUGIN)) throw new IOException(NLS.bind(CommonMessages.url_badVariant, originalURL)); - int ix = spec.indexOf('/', PLUGIN.length() + 1); //$NON-NLS-1$ + int ix = spec.indexOf('/', PLUGIN.length() + 1); String ref = ix == -1 ? spec.substring(PLUGIN.length() + 1) : spec.substring(PLUGIN.length() + 1, ix); String id = getId(ref); Activator activator = Activator.getDefault(); diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/Path.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/Path.java index 42b19f560..1cac27b9a 100644 --- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/Path.java +++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/Path.java @@ -319,7 +319,7 @@ public class Path implements IPath, Cloneable { @Override public IPath append(String tail) { //optimize addition of a single segment - if (tail.indexOf(SEPARATOR) == -1 && tail.indexOf('\\') == -1 && tail.indexOf(DEVICE_SEPARATOR) == -1) { //$NON-NLS-1$ + if (tail.indexOf(SEPARATOR) == -1 && tail.indexOf('\\') == -1 && tail.indexOf(DEVICE_SEPARATOR) == -1) { int tailLength = tail.length(); if (tailLength < 3) { //some special cases |