From 534fcb14795ac8cb1107cda9be1de4f5e1f38ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20Ar=C3=A8s?= Date: Fri, 3 Jun 2016 15:57:12 -0400 Subject: [PATCH] Add $NON-NLS to suppress "Non-externalized string literal" warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1643775c6b200a5963ac1a6ca9b4d6e807e0b45a Signed-off-by: Hugo Arès --- org.eclipse.jgit/src/org/eclipse/jgit/util/HttpSupport.java | 4 ++-- 1 file 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 7cb2bf6c8..202645b9d 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 static int response(final HttpConnection c) throws IOException { return c.getResponseCode(); } catch (ConnectException ce) { final URL url = c.getURL(); - final String host = (url == null) ? "" : url.getHost(); + final String host = (url == 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 static int response(final java.net.HttpURLConnection c) return c.getResponseCode(); } catch (ConnectException ce) { final URL url = c.getURL(); - final String host = (url == null) ? "" : url.getHost(); + final String host = (url == 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$