]> source.dussan.org Git - jgit.git/commit
UnpackedObjectTest: Create ObjectInserter.Formatter in try-with-resource 48/64948/1
authorDavid Pursehouse <david.pursehouse@sonymobile.com>
Fri, 22 Jan 2016 05:51:52 +0000 (14:51 +0900)
committerDavid Pursehouse <david.pursehouse@sonymobile.com>
Fri, 22 Jan 2016 05:51:59 +0000 (14:51 +0900)
commit84ac3cc3792ec164e304acf89d739bf724b619cc
tree1846d454ffb50db4939db21bda77ddcf87b8a3f2
parent3ee9e2ac076733298906b92965a27a532c1cd5f5
UnpackedObjectTest: Create ObjectInserter.Formatter in try-with-resource

The ObjectInserter.Formatter instance is only used to call idFor.

Factor out a utility method to do that.

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