]> source.dussan.org Git - jgit.git/commit
CloneCommand: Suppress resource warning about Repository 36/119736/2
authorDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 20 Mar 2018 02:28:18 +0000 (11:28 +0900)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 24 Mar 2018 21:15:45 +0000 (22:15 +0100)
commitb3a4ace695328945fcebb85be102733c97c498ac
tree5c92c76e86b5afa0eba153cca30d84ab02b499ec
parent7960b4e09fb8807d897b5b913ab43b2c8e07219d
CloneCommand: Suppress resource warning about Repository

Repository is not opened in try-with-resource because it is wrapped
in a Git instance which should be closed by the caller. On exeptions
during fetch, it is explicitly closed in the catch blocks.

Suppress the warning with an explanatory comment.

Change-Id: Ib32c74ce39bb810077ab84db33002bdde806f3b6
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java