Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Tan2018-04-24 20:05:16 +0000
committerMatthias Sohn2018-04-24 22:46:13 +0000
commitce7ac03c2f582eae9e7d250fef0e1685c5c3ab22 (patch)
tree5aba3b7980c27345b5a1e48e2755019fdf7c3f9b /org.eclipse.jgit.test
parent32a8162bc310de648b500913f0e41dd2dbe267b2 (diff)
downloadjgit-ce7ac03c2f582eae9e7d250fef0e1685c5c3ab22.tar.gz
jgit-ce7ac03c2f582eae9e7d250fef0e1685c5c3ab22.tar.xz
jgit-ce7ac03c2f582eae9e7d250fef0e1685c5c3ab22.zip
Remove unused code and link to deprecated code
Eclipse reports these as errors, so remove them. Change-Id: Ic53d8003f9faef38fe776af5a73794e7bb1dfc49 Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java21
1 files changed, 1 insertions, 20 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 9a50fb7cea..e62d84ec5d 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
@@ -334,22 +334,6 @@ public class UploadPackTest {
}
}
- private static ByteArrayInputStream send(String... lines) throws Exception {
- ByteArrayOutputStream os = new ByteArrayOutputStream();
- PacketLineOut pckOut = new PacketLineOut(os);
- for (String line : lines) {
- if (line == PacketLineIn.END) {
- pckOut.end();
- } else if (line == PacketLineIn.DELIM) {
- pckOut.writeDelim();
- } else {
- pckOut.writeString(line);
- }
- }
- byte[] a = os.toByteArray();
- return new ByteArrayInputStream(a);
- }
-
/*
* Invokes UploadPack with protocol v2 and sends it the given lines.
* Returns UploadPack's output stream, not including the capability
@@ -534,9 +518,6 @@ public class UploadPackTest {
* into the client repository.
*/
private void parsePack(ByteArrayInputStream recvStream) throws Exception {
- SideBandInputStream sb = new SideBandInputStream(
- recvStream, NullProgressMonitor.INSTANCE,
- new StringWriter(), NullOutputStream.INSTANCE);
parsePack(recvStream, NullProgressMonitor.INSTANCE);
}
@@ -826,7 +807,7 @@ public class UploadPackTest {
private static class RejectAllRefFilter implements RefFilter {
@Override
public Map<String, Ref> filter(Map<String, Ref> refs) {
- return new HashMap<String, Ref>();
+ return new HashMap<>();
}
};
}

Back to the top