From 5b1c40fe90b3349df985b66efc18cbe353183c66 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Mon, 19 Mar 2018 16:58:05 +0900 Subject: [PATCH] Suppress non-localized string warnings introduced by If72b4b422 Change-Id: I2e4544d715b4284f544a26f504d01159c5843160 Signed-off-by: David Pursehouse --- .../eclipse/jgit/transport/BasePackFetchConnection.java | 4 ++-- .../src/org/eclipse/jgit/transport/UploadPack.java | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java index 0de9dfd7e2..c49013a8a1 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetchConnection.java @@ -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; diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java index 7f36ab98d2..6ae7b96d43 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java @@ -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, -- 2.39.5