Просмотр исходного кода

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

Change-Id: I1643775c6b200a5963ac1a6ca9b4d6e807e0b45a
Signed-off-by: Hugo Arès <hugo.ares@ericsson.com>
tags/v4.5.0.201609210915-r
Hugo Arès 8 лет назад
Родитель
Сommit
534fcb1479
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      org.eclipse.jgit/src/org/eclipse/jgit/util/HttpSupport.java

+ 2
- 2
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$

Загрузка…
Отмена
Сохранить