summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2020-04-27 15:11:52 +0200
committerDavid Pursehouse <david.pursehouse@gmail.com>2020-04-28 08:21:06 +0900
commit560ef875e399cc20c3fce4a119c6ed2118fbe62d (patch)
treea903bc18809eafb04ad2716ca677700232759d03
parentf3bc72fd21928267f9023b072d5afbc2d3996240 (diff)
downloadjgit-560ef875e399cc20c3fce4a119c6ed2118fbe62d.tar.gz
jgit-560ef875e399cc20c3fce4a119c6ed2118fbe62d.zip
URIish: suppress non-localized message warning
Change-Id: I3ec37c67ba6f00ad8bf396aa3261dd90f35789ea Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java
index b9fdf01602..c9bb89a436 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java
@@ -738,7 +738,8 @@ public class URIish implements Serializable {
else if (result.endsWith(Constants.DOT_GIT_EXT))
result = result.substring(0, result.length()
- Constants.DOT_GIT_EXT.length());
- if (("file".equals(scheme) || LOCAL_FILE.matcher(s).matches())
+ if (("file".equals(scheme) || LOCAL_FILE.matcher(s) //$NON-NLS-1$
+ .matches())
&& result.endsWith(Constants.DOT_BUNDLE_EXT)) {
result = result.substring(0,
result.length() - Constants.DOT_BUNDLE_EXT.length());