summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Arès <hugo.ares@ericsson.com>2016-06-03 15:57:12 -0400
committerHugo Arès <hugo.ares@ericsson.com>2016-06-03 15:57:18 -0400
commit534fcb14795ac8cb1107cda9be1de4f5e1f38ea1 (patch)
tree5828882200aca0b5fc75677db5c26ad88b81205a
parentba8eb931734d990c5a6a9352e4629fc84a191808 (diff)
downloadjgit-534fcb14795ac8cb1107cda9be1de4f5e1f38ea1.tar.gz
jgit-534fcb14795ac8cb1107cda9be1de4f5e1f38ea1.zip
Add $NON-NLS to suppress "Non-externalized string literal" warnings
Change-Id: I1643775c6b200a5963ac1a6ca9b4d6e807e0b45a Signed-off-by: Hugo Arès <hugo.ares@ericsson.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/HttpSupport.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/HttpSupport.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/HttpSupport.java
index 7cb2bf6c87..202645b9d9 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/HttpSupport.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/HttpSupport.java
@@ -190,7 +190,7 @@ public class HttpSupport {
return c.getResponseCode();
} catch (ConnectException ce) {
final URL url = c.getURL();
- final String host = (url == null) ? "<null>" : url.getHost();
+ final String host = (url == null) ? "<null>" : url.getHost(); //$NON-NLS-1$
// The standard J2SE error message is not very useful.
//
if ("Connection timed out: connect".equals(ce.getMessage())) //$NON-NLS-1$
@@ -218,7 +218,7 @@ public class HttpSupport {
return c.getResponseCode();
} catch (ConnectException ce) {
final URL url = c.getURL();
- final String host = (url == null) ? "<null>" : url.getHost();
+ final String host = (url == null) ? "<null>" : url.getHost(); //$NON-NLS-1$
// The standard J2SE error message is not very useful.
//
if ("Connection timed out: connect".equals(ce.getMessage())) //$NON-NLS-1$