aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit
diff options
context:
space:
mode:
authorThomas Wolf <thomas.wolf@paranor.ch>2021-09-30 17:16:30 +0200
committerThomas Wolf <thomas.wolf@paranor.ch>2021-09-30 17:16:30 +0200
commit4657e7a99aef1f102f228ab8ea0e3c52d27a94ff (patch)
tree2e6a27a8c1d68a2a421584070cfc202e058cbc80 /org.eclipse.jgit/src/org/eclipse/jgit
parentbdba9edd5f1212aee33a5bb713c27b80a72617cb (diff)
downloadjgit-4657e7a99aef1f102f228ab8ea0e3c52d27a94ff.tar.gz
jgit-4657e7a99aef1f102f228ab8ea0e3c52d27a94ff.zip
Rename a local variable
To avoid a warning about a name clash with the field. Change-Id: Ib1950486a9c63647e4240a268a3c9a7d613f3303 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java8
1 files changed, 4 insertions, 4 deletions
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<ObjectId> 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 {