Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorKen Ryall2010-06-01 16:44:33 +0000
committerKen Ryall2010-06-01 16:44:33 +0000
commit2bedd8397b518c9025cdcde4ed5cf4f23372e719 (patch)
tree2313ff8d36d7d637cbbbdc58df5aa4ae98390b2b /debug
parenta137a7f097fb7237a02b9116c4a1e552a5dcd06a (diff)
downloadorg.eclipse.cdt-2bedd8397b518c9025cdcde4ed5cf4f23372e719.tar.gz
org.eclipse.cdt-2bedd8397b518c9025cdcde4ed5cf4f23372e719.tar.xz
org.eclipse.cdt-2bedd8397b518c9025cdcde4ed5cf4f23372e719.zip
Fix warnings.
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/MapEntrySourceContainer.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/MapEntrySourceContainer.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/MapEntrySourceContainer.java
index 489bd365b89..ea3e5d83883 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/MapEntrySourceContainer.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/MapEntrySourceContainer.java
@@ -74,13 +74,13 @@ public class MapEntrySourceContainer extends AbstractSourceContainer {
*/
public static IPath createPath(String path) {
if (path == null) return null;
- if (path.contains("\\")) {
+ if (path.contains("\\")) { //$NON-NLS-1$
// handle Windows slashes and canonicalize
- path = path.replaceAll("\\\\", "/");
+ path = path.replaceAll("\\\\", "/"); //$NON-NLS-1$ //$NON-NLS-2$
}
// also check for device or UNC
- int idx = path.indexOf(":");
+ int idx = path.indexOf(":"); //$NON-NLS-1$
if (idx > 0) {
String device = path.substring(0, idx + 1);
path = path.substring(idx + 1);
@@ -88,15 +88,15 @@ public class MapEntrySourceContainer extends AbstractSourceContainer {
}
else {
// Cygwin or UNC path
- if (path.startsWith("//")) {
+ if (path.startsWith("//")) { //$NON-NLS-1$
String network;
- idx = path.indexOf("/", 2);
+ idx = path.indexOf("/", 2); //$NON-NLS-1$
if (idx > 0) {
network = path.substring(0, idx);
path = path.substring(idx);
} else {
network = path;
- path = "";
+ path = ""; //$NON-NLS-1$
}
return new Path(network, path).makeUNC(true);
}

Back to the top