]> source.dussan.org Git - jgit.git/commit
UploadPack: Suppress resource warning about PackWriter 75/119375/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Wed, 14 Mar 2018 00:39:48 +0000 (09:39 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Wed, 14 Mar 2018 01:44:23 +0000 (10:44 +0900)
commit67df4986cef270144c7cae3485dc8541ca180649
tree658b2f42b4f6f7c2e33b9280d2505f841af0f681
parented9ede3446f0c95e80eb6feb1dec5dfa698184a9
UploadPack: Suppress resource warning about PackWriter

PackWriter is auto-closeable and should be opened in try-with-resource,
but this is not possible since the variable is being referenced in the
finally block before being explicitly closed there.

Suppress the warning and add an explanatory comment.

Change-Id: I161923f35142132234fd951c0146d3cb30920b7b
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java