diff options
author | Robin Rosenberg <robin.rosenberg@dewire.com> | 2012-11-25 17:17:20 +0100 |
---|---|---|
committer | Robin Rosenberg <robin.rosenberg@dewire.com> | 2012-12-27 16:57:38 +0100 |
commit | c310fa0c802f40a774edb58641de3ac5bfad0e2c (patch) | |
tree | 28dc002136ce8a2c122e2cb012a317aa7d8a0efa /org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java | |
parent | 03d50dc50b584caf2826f7db8a4748435b610f63 (diff) | |
download | jgit-c310fa0c802f40a774edb58641de3ac5bfad0e2c.tar.gz jgit-c310fa0c802f40a774edb58641de3ac5bfad0e2c.zip |
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
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java | 16 |
1 files changed, 8 insertions, 8 deletions
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<String>() { 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<File> p = gitPrefix; if (p == null) { String overrideGitPrefix = SystemReader.getInstance().getProperty( - "jgit.gitprefix"); + "jgit.gitprefix"); //$NON-NLS-1$ if (overrideGitPrefix != null) p = new Holder<File>(new File(overrideGitPrefix)); else |