Browse Source

Add $NON-NLS to suppress "Non-externalized string literal" warnings

Change-Id: I1643775c6b200a5963ac1a6ca9b4d6e807e0b45a
Signed-off-by: Hugo Arès <hugo.ares@ericsson.com>
stable-4.5
Hugo Arès 9 years ago
parent
commit
534fcb1479
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/util/HttpSupport.java

4
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$

Loading…
Cancel
Save