]> source.dussan.org Git - jgit.git/commit
DiffFormatterTest: Create auto-closeable instances in try-with-resource 40/64840/1
authorDavid Pursehouse <david.pursehouse@sonymobile.com>
Thu, 21 Jan 2016 08:00:15 +0000 (17:00 +0900)
committerDavid Pursehouse <david.pursehouse@sonymobile.com>
Thu, 21 Jan 2016 08:01:25 +0000 (17:01 +0900)
commit1257cfc2626c7ab7e73b5f6f383c986fc8c059c4
treed5cd31d8a4135aa36b0784966a750e5bf664fbac
parent72c94465bc09e77984b054d9f5ebe2f42713d23f
DiffFormatterTest: Create auto-closeable instances in try-with-resource

Git, ByteArrayOutputStream, and DiffFormatter are auto-closeable and
should be managed in try-with-resource.

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