From 4657e7a99aef1f102f228ab8ea0e3c52d27a94ff Mon Sep 17 00:00:00 2001 From: Thomas Wolf Date: Thu, 30 Sep 2021 17:16:30 +0200 Subject: Rename a local variable To avoid a warning about a name clash with the field. Change-Id: Ib1950486a9c63647e4240a268a3c9a7d613f3303 Signed-off-by: Thomas Wolf --- org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'org.eclipse.jgit/src/org/eclipse/jgit') 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 07b348d0e7..258271dc60 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java @@ -1807,7 +1807,7 @@ public class UploadPack { private boolean shouldGiveUp(List peerHas, PacketLineOut out, int missCnt) throws IOException { - boolean sentReady = false; + boolean readySent = false; boolean didOkToGiveUp = false; if (0 < missCnt) { for (int i = peerHas.size() - 1; i >= 0; i--) { @@ -1825,7 +1825,7 @@ public class UploadPack { case DETAILED: out.writeString( "ACK " + id.name() + " ready\n"); //$NON-NLS-1$ //$NON-NLS-2$ - sentReady = true; + readySent = true; break; } } @@ -1838,10 +1838,10 @@ public class UploadPack { && okToGiveUp()) { ObjectId id = peerHas.get(peerHas.size() - 1); out.writeString("ACK " + id.name() + " ready\n"); //$NON-NLS-1$ //$NON-NLS-2$ - sentReady = true; + readySent = true; } - return sentReady; + return readySent; } private void parseWants(PackStatistics.Accumulator accumulator) throws IOException { -- cgit v1.2.3