]> source.dussan.org Git - jgit.git/commitdiff
Suppress non-localized string warnings introduced by If72b4b422 45/119645/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Mon, 19 Mar 2018 07:58:05 +0000 (16:58 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Mon, 19 Mar 2018 23:28:14 +0000 (08:28 +0900)
Change-Id: I2e4544d715b4284f544a26f504d01159c5843160
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java

index 0de9dfd7e2c2adb8dea0c84e5bdca9b867c4eb5e..c49013a8a17b8a328bb9faada780bbb349686e40 100644 (file)
@@ -536,9 +536,9 @@ public abstract class BasePackFetchConnection extends BasePackConnection
                        return false;
                }
                if (filterBlobLimit == 0) {
-                       p.writeString(OPTION_FILTER + " blob:none");
+                       p.writeString(OPTION_FILTER + " blob:none"); //$NON-NLS-1$
                } else if (filterBlobLimit > 0) {
-                       p.writeString(OPTION_FILTER + " blob:limit=" + filterBlobLimit);
+                       p.writeString(OPTION_FILTER + " blob:limit=" + filterBlobLimit); //$NON-NLS-1$
                }
                p.end();
                outNeedsEnd = false;
index 7f36ab98d2768e47d3d074795572280356c8ef49..6ae7b96d43e8909d34c0a031b5ece014057f858a 100644 (file)
@@ -1026,11 +1026,12 @@ public class UploadPack {
                                }
                                filterReceived = true;
 
-                               if (arg.equals("blob:none")) {
+                               if (arg.equals("blob:none")) { //$NON-NLS-1$
                                        filterBlobLimit = 0;
-                               } else if (arg.startsWith("blob:limit=")) {
+                               } else if (arg.startsWith("blob:limit=")) { //$NON-NLS-1$
                                        try {
-                                               filterBlobLimit = Long.parseLong(arg.substring("blob:limit=".length()));
+                                               filterBlobLimit = Long.parseLong(
+                                                               arg.substring("blob:limit=".length())); //$NON-NLS-1$
                                        } catch (NumberFormatException e) {
                                                throw new PackProtocolException(
                                                                MessageFormat.format(JGitText.get().invalidFilter,