]> source.dussan.org Git - jgit.git/commit
TemporaryBufferTest: Suppress "should be managed by try-with-resource" 97/119297/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 13 Mar 2018 08:24:10 +0000 (17:24 +0900)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 13 Mar 2018 21:21:34 +0000 (22:21 +0100)
commitbf757cd1c6202aa6b891bdc47c206039cbf798f0
treed41c923c2b092230078268d14e9084c071f5462c
parent5c70be00856d5375485e6f062b6e1e09a606601f
TemporaryBufferTest: Suppress "should be managed by try-with-resource"

In most of the tests, the temporary buffer is explicitly destroyed in
a finally block after being closed. This is not possible if using the
try-with-resource construct, because the variable is not accessible in
the finally block scope.

Change-Id: I3bab30695ddd12e1a0ae107989638428fe3ef551
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/TemporaryBufferTest.java