]> source.dussan.org Git - jgit.git/commit
SideBandOutputStreamTest: Use try-with-resource 18/64718/1
authorDavid Pursehouse <david.pursehouse@sonymobile.com>
Wed, 20 Jan 2016 02:38:35 +0000 (11:38 +0900)
committerDavid Pursehouse <david.pursehouse@sonymobile.com>
Wed, 20 Jan 2016 02:38:35 +0000 (11:38 +0900)
commit0d77b4e5c87528f2d3e810742997483f403c8968
tree09e7d1f1b0f677f16ae7e4ab1245c7d94dc59062
parent7c21aeb5083ca5ec3a8eaf54ab2ba8d2f84ce87a
SideBandOutputStreamTest: Use try-with-resource

Factor out the creation of the SideBandOutputStream objects into
a utility method that wraps it in a try-with-resource.

Remove the "unused" suppression that is now unnecessary, and add
declaration that the tests methods can throw Exception.

Change-Id: Iff02e4e3532bd6ab6e423f197e70d44c4f328d0b
Signed-off-by: David Pursehouse <david.pursehouse@sonymobile.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/SideBandOutputStreamTest.java