diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-11-08 23:41:16 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-11-09 00:08:42 +0100 |
commit | 32f7db784d0cf4a4c5917fda4243e450810affe7 (patch) | |
tree | a9da408a6fa71fc4afa8118071d0c0410713aefd /org.eclipse.jgit.test/tst | |
parent | 15c6947fd7ffc1f8c9da0b5b93a896c5745461d9 (diff) | |
download | jgit-32f7db784d0cf4a4c5917fda4243e450810affe7.tar.gz jgit-32f7db784d0cf4a4c5917fda4243e450810affe7.zip |
Fix hiding field warning
Change-Id: I9aced1b711901918667555a4cfff76992024e59c
Diffstat (limited to 'org.eclipse.jgit.test/tst')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java index 09989b7ca6..3a1fa24009 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java @@ -3037,10 +3037,10 @@ public class UploadPackTest { remote.update("three", three); server.getConfig().setBoolean("uploadpack", null, "allowrefinwant", true); - PackStatistics stats = uploadPackV2SetupStats("command=fetch\n", + PackStatistics packStats = uploadPackV2SetupStats("command=fetch\n", PacketLineIn.delimiter(), "want-ref refs/heads/one\n", "want-ref refs/heads/two\n", "done\n", PacketLineIn.end()); - assertEquals("only wanted-refs", 2, stats.getAdvertised()); + assertEquals("only wanted-refs", 2, packStats.getAdvertised()); assertEquals(0, ((RefCallsCountingRepository) server).numRefCalls()); } @@ -3058,10 +3058,10 @@ public class UploadPackTest { remote.update("three", three); server.getConfig().setBoolean("uploadpack", null, "allowrefinwant", true); - PackStatistics stats = uploadPackV2SetupStats("command=fetch\n", + PackStatistics packStats = uploadPackV2SetupStats("command=fetch\n", PacketLineIn.delimiter(), "want-ref refs/heads/one\n", "want " + one.getName() + "\n", "done\n", PacketLineIn.end()); - assertEquals("all refs", 3, stats.getAdvertised()); + assertEquals("all refs", 3, packStats.getAdvertised()); assertEquals(1, ((RefCallsCountingRepository) server).numRefCalls()); } |