Add $NON-NLS to suppress "Non-externalized string literal" warnings
Change-Id: I1643775c6b200a5963ac1a6ca9b4d6e807e0b45a Signed-off-by: Hugo Arès <hugo.ares@ericsson.com>
This commit is contained in:
parent
ba8eb93173
commit
534fcb1479
|
@ -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) ? "<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 static int response(final java.net.HttpURLConnection c)
|
|||
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…
Reference in New Issue