]> source.dussan.org Git - jgit.git/commitdiff
Silence non-externalized string warnings in RepoCommand 86/40086/1
authorMatthias Sohn <matthias.sohn@sap.com>
Wed, 21 Jan 2015 23:42:22 +0000 (00:42 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 21 Jan 2015 23:42:22 +0000 (00:42 +0100)
Change-Id: Ia25543c0d80817f8eb35c667ba5dcce046131a7c
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java

index 4207513e709562017e2b8d6fbf3dbcf8b17f4d3e..a4b444ed2c571b280ec77daf740055a5749e6cdd 100644 (file)
@@ -428,8 +428,8 @@ public class RepoCommand extends GitCommand<RevCommit> {
                                                        currentProject.path,
                                                        attributes.getValue("src"), //$NON-NLS-1$
                                                        attributes.getValue("dest"))); //$NON-NLS-1$
-                       } else if ("include".equals(qName)) { //$NON_NLS-1$
-                               String name = attributes.getValue("name");
+                       } else if ("include".equals(qName)) { //$NON-NLS-1$
+                               String name = attributes.getValue("name"); //$NON-NLS-1$
                                InputStream is = null;
                                if (includedReader != null) {
                                        try {
@@ -505,8 +505,8 @@ public class RepoCommand extends GitCommand<RevCommit> {
                                String remoteUrl = remoteUrls.get(remote);
                                if (remoteUrl == null) {
                                        remoteUrl = baseUri.resolve(remotes.get(remote)).toString();
-                                       if (!remoteUrl.endsWith("/"))
-                                               remoteUrl = remoteUrl + "/";
+                                       if (!remoteUrl.endsWith("/")) //$NON-NLS-1$
+                                               remoteUrl = remoteUrl + "/"; //$NON-NLS-1$
                                        remoteUrls.put(remote, remoteUrl);
                                }