jgit/org.eclipse.jgit
David Pursehouse 5c70be0085 Open auto-closeable resources in try-with-resource
When an auto-closeable resources is not opened in try-with-resource,
the warning "should be managed by try-with-resource" is emitted by
Eclipse.

Fix the ones that can be silenced simply by moving the declaration of
the variable into a try-with-resource.

In cases where we explicitly call the close() method, for example in
tests where we are testing specific behavior caused by the close(),
suppress the warning.

Leave the ones that will require more significant refcactoring to fix.
They can be done in separate commits that can be reviewed and tested
in isolation.

Change-Id: I9682cd20fb15167d3c7f9027cecdc82bc50b83c4
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
2018-03-13 22:16:06 +01:00
..
.settings Silence API error raised for new CONFIG_SECTION_LFS constant 2018-03-06 00:28:38 +01:00
META-INF Prepare 5.0.0-SNAPSHOT builds 2018-03-08 23:09:18 +01:00
findBugs
resources/org/eclipse/jgit LFS: support merge/rebase/cherry-pick/diff/compare with LFS files 2018-03-03 11:39:43 +01:00
src/org/eclipse/jgit Open auto-closeable resources in try-with-resource 2018-03-13 22:16:06 +01:00
.classpath Change JGit minimum execution environment to JavaSE-1.8 2016-09-20 11:32:36 +02:00
.fbprefs
.gitignore
.project
BUILD Bazel: Support building with Java 9 2018-02-07 17:51:35 -05:00
about.html SHA-1: collision detection support 2017-02-28 16:38:43 -08:00
build.properties
plugin.properties
pom.xml Prepare 5.0.0-SNAPSHOT builds 2018-03-08 23:09:18 +01:00