jgit/org.eclipse.jgit.http.test
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 Enable warning for resources not managed by try-with-resource 2018-03-03 23:58:47 +01:00
META-INF Prepare 5.0.0-SNAPSHOT builds 2018-03-08 23:09:18 +01:00
src/org/eclipse/jgit/http/test Fix javadoc in org.eclipse.jgit.http.test 2017-12-17 20:05:55 +01:00
tst/org/eclipse/jgit/http 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
.gitignore Make HTTP test project work in Eclipse 2010-01-23 11:29:25 -08:00
.project Enforce the use of Java5 API:s only (with a few exceptions) 2011-12-16 01:01:36 +01:00
BUILD Bazel: Add missing dependency in org.eclipse.jgit.http.test 2017-08-18 10:01:06 +01:00
build.properties Add path src/ to source path in build.properties 2016-08-06 19:12:06 -04:00
org.eclipse.jgit.http--All-Tests.launch Add the other test launchers as favorites 2013-06-16 23:33:29 +02:00
plugin.properties Fix plugin provider names to conform with release train requirement 2013-04-08 23:05:36 +02:00
pom.xml Prepare 5.0.0-SNAPSHOT builds 2018-03-08 23:09:18 +01:00