diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2018-09-27 18:01:03 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2018-09-27 18:01:03 +0900 |
commit | b2ee02f53b75f1358f5784d60880f5a4be9a1d72 (patch) | |
tree | 8d3d7ed939dd7b13329ba54b82856b2d70a8423c /org.eclipse.jgit.test/.settings | |
parent | fa61fd6f61de2ff997c791154bbaf1dc00ee96b9 (diff) | |
download | jgit-b2ee02f53b75f1358f5784d60880f5a4be9a1d72.tar.gz jgit-b2ee02f53b75f1358f5784d60880f5a4be9a1d72.zip |
FileRepositoryBuilderTest: Don't explicitly close BufferedWriter in try-with-resource
The BufferedWriter is opened in a try-with-resource and thus will be
automatically closed.
Presumably the close was added to make sure it is closed before the
subsequent test statements are executed. Instead of explicitly closing
it, let the try-with-resource automatically close it, and move the
subsequent statements out of the try-block.
Change-Id: If5fada2f580ef9cbaad3a0b9216b5200b917781a
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.test/.settings')
0 files changed, 0 insertions, 0 deletions