gerrit/gerrit-acceptance-tests
Dave Borowitz 16f552165a Convert to new AutoCloseable instances coming in JGit 4.0
Repository, RevWalk, and friends have been converted to AutoCloseable.
Use them in try-with-resources blocks in order to avoid warnings about
unclosed resources or calls to deprecated release() methods. Where a
larger rewrite might have been possible to reduce try/finally blocks,
err on the side of keeping the same behavior.

The proximate goal of this change was to eliminate all Eclipse
warnings about deprecated method calls (namely release()) and leaked
resources. Some of these warnings were in fact potential leaks;
Eclipse finding such cases is a side benefit of having these classes
implement AutoCloseable. However, this change certainly does not cover
all cases where try-with-resources could have been used, where it was
not causing a leak.

Fixes all such warnings in plugin submodules as well.

Change-Id: I5d151996ae012d0e8fdfa27cce8cf5e2bfc856a2
2015-03-11 08:59:41 -07:00
..
src/test/java/com/google/gerrit/acceptance Convert to new AutoCloseable instances coming in JGit 4.0 2015-03-11 08:59:41 -07:00
BUCK Revert "Allow tests to use hamcrest matchers directly" 2014-12-24 08:42:12 +00:00
tests.defs tests: Use insecure random for acceptance tests 2014-04-24 08:30:43 +02:00