]> source.dussan.org Git - jgit.git/commit
FileRepositoryBuilderTest: Use try-with-resource for auto-closeables 47/64947/1
authorDavid Pursehouse <david.pursehouse@sonymobile.com>
Fri, 22 Jan 2016 05:30:57 +0000 (14:30 +0900)
committerDavid Pursehouse <david.pursehouse@sonymobile.com>
Fri, 22 Jan 2016 05:31:50 +0000 (14:31 +0900)
commit3ee9e2ac076733298906b92965a27a532c1cd5f5
tree41b638f2d1ce9f22f0333dc07b4137b47ed146ad
parentddcbd22cd376754fed73ae1824b924ff5403380d
FileRepositoryBuilderTest: Use try-with-resource for auto-closeables

Use try-with-resource to create instances of FileRepository and
FileWriter.

"resource" and "unused" warnings no longer occur, so remove the
suppression annotations.

Change-Id: I3ad58d4cc2d4c019cd8edda7cb401e9d9f3fb790
Signed-off-by: David Pursehouse <david.pursehouse@sonymobile.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/FileRepositoryBuilderTest.java