From c310fa0c802f40a774edb58641de3ac5bfad0e2c Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Sun, 25 Nov 2012 17:17:20 +0100 Subject: Mark non-externalizable strings as such A few classes such as Constanrs are marked with @SuppressWarnings, as are toString() methods with many liternal, but otherwise $NLS-n$ is used for string containing text that should not be translated. A few literals may fall into the gray zone, but mostly I've tried to only tag the obvious ones. Change-Id: I22e50a77e2bf9e0b842a66bdf674e8fa1692f590 --- org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java') diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java index 6eb020e52b..ae6197838c 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java @@ -243,7 +243,7 @@ public abstract class FS { final String home = AccessController .doPrivileged(new PrivilegedAction() { public String run() { - return System.getProperty("user.home"); + return System.getProperty("user.home"); //$NON-NLS-1$ } }); if (home == null || home.length() == 0) @@ -287,10 +287,10 @@ public abstract class FS { */ protected static String readPipe(File dir, String[] command, String encoding) { final boolean debug = Boolean.parseBoolean(SystemReader.getInstance() - .getProperty("jgit.fs.debug")); + .getProperty("jgit.fs.debug")); //$NON-NLS-1$ try { if (debug) - System.err.println("readpipe " + Arrays.asList(command) + "," + System.err.println("readpipe " + Arrays.asList(command) + "," //$NON-NLS-1$ //$NON-NLS-2$ + dir); final Process p = Runtime.getRuntime().exec(command, null, dir); final BufferedReader lineRead = new BufferedReader( @@ -330,8 +330,8 @@ public abstract class FS { try { r = lineRead.readLine(); if (debug) { - System.err.println("readpipe may return '" + r + "'"); - System.err.println("(ignoring remaing output:"); + System.err.println("readpipe may return '" + r + "'"); //$NON-NLS-1$ //$NON-NLS-2$ + System.err.println("(ignoring remaing output:"); //$NON-NLS-1$ } String l; while ((l = lineRead.readLine()) != null) { @@ -351,7 +351,7 @@ public abstract class FS { && !gooblerFail.get()) return r; if (debug) - System.err.println("readpipe rc=" + rc); + System.err.println("readpipe rc=" + rc); //$NON-NLS-1$ break; } catch (InterruptedException ie) { // Stop bothering me, I have a zombie to reap. @@ -363,7 +363,7 @@ public abstract class FS { // Ignore error (but report) } if (debug) - System.err.println("readpipe returns null"); + System.err.println("readpipe returns null"); //$NON-NLS-1$ return null; } @@ -372,7 +372,7 @@ public abstract class FS { Holder p = gitPrefix; if (p == null) { String overrideGitPrefix = SystemReader.getInstance().getProperty( - "jgit.gitprefix"); + "jgit.gitprefix"); //$NON-NLS-1$ if (overrideGitPrefix != null) p = new Holder(new File(overrideGitPrefix)); else -- cgit v1.2.3