]> source.dussan.org Git - jgit.git/commit
SmartClientSmartServerTest: Open Repository in try-with-resource 56/135456/1
authorDavid Pursehouse <david.pursehouse@gmail.com>
Mon, 21 Jan 2019 06:35:38 +0000 (15:35 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Mon, 21 Jan 2019 06:54:30 +0000 (15:54 +0900)
commit3b94cd008f6e068faf19258b4512ec8475014883
tree8e14b363188aa30b379a44b75d021eb646ce3852
parentec72e8029ebbb28b37fef5c3d84a2bb55e788203
SmartClientSmartServerTest: Open Repository in try-with-resource

Since 52923e9 ("LocalDiskRepositoryTestCase#createRepository: Default
auto-close to false", Jan 20, 2019) the createBareRepository method
creates repositories that do not get automatically closed in #tearDown.

Convert invocations of createBareRepository to use try-with-resource.

Change-Id: I320030c5d4438713971bee33316bff408bac47fc
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/SmartClientSmartServerTest.java