aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/lib/UserConfig.java
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2012-11-25 17:17:20 +0100
committerRobin Rosenberg <robin.rosenberg@dewire.com>2012-12-27 16:57:38 +0100
commitc310fa0c802f40a774edb58641de3ac5bfad0e2c (patch)
tree28dc002136ce8a2c122e2cb012a317aa7d8a0efa /org.eclipse.jgit/src/org/eclipse/jgit/lib/UserConfig.java
parent03d50dc50b584caf2826f7db8a4748435b610f63 (diff)
downloadjgit-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/lib/UserConfig.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/UserConfig.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/UserConfig.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/UserConfig.java
index da44a2ef31..60b4819eda 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/UserConfig.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/UserConfig.java
@@ -173,7 +173,7 @@ public class UserConfig {
private static String getNameInternal(Config rc, String envKey) {
// try to get the user name from the local and global configurations.
- String username = rc.getString("user", null, "name");
+ String username = rc.getString("user", null, "name"); //$NON-NLS-1$ //$NON-NLS-2$
if (username == null) {
// try to get the user name for the system property GIT_XXX_NAME
@@ -197,7 +197,7 @@ public class UserConfig {
private static String getEmailInternal(Config rc, String envKey) {
// try to get the email from the local and global configurations.
- String email = rc.getString("user", null, "email");
+ String email = rc.getString("user", null, "email"); //$NON-NLS-1$ //$NON-NLS-2$
if (email == null) {
// try to get the email for the system property GIT_XXX_EMAIL
@@ -214,7 +214,7 @@ public class UserConfig {
private static String getDefaultEmail() {
// try to construct an email
String username = getDefaultUserName();
- return username + "@" + system().getHostname();
+ return username + "@" + system().getHostname(); //$NON-NLS-1$
}
private static SystemReader system() {