]> source.dussan.org Git - jgit.git/commit
DirCache: Suppress resource warning related to TemporaryBuffer 77/119377/3
authorDavid Pursehouse <david.pursehouse@gmail.com>
Wed, 14 Mar 2018 01:56:18 +0000 (10:56 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Wed, 14 Mar 2018 22:57:02 +0000 (07:57 +0900)
commit7bd2a4a7c60d183b26b59995063a38f5573112ec
treebe1440612c454ff48902ca7d464a030c04c3ba34
parent3e1066d0a4460c63b7d77293959c6e548bef9a16
DirCache: Suppress resource warning related to TemporaryBuffer

In #writeTo, the TemporaryBuffer can't be opened in try-with-resource
because it's referenced in the finally block. Instead it is explicitly
closed within the try block. Suppress the warning with an explanatory
comment.

Change-Id: I02009f77f9630d5d55afc34eb86d304ff103b8b0
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCache.java