diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2019-01-20 17:41:59 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2019-01-20 17:41:59 +0900 |
commit | 91b1fe4687c3bff3195e6f2ff207ea96fa626cca (patch) | |
tree | 9d73ea23b386e90afbc10df19e7e8c278126b5b6 /org.eclipse.jgit | |
parent | 9b2779925cc0dff7779f129e6661a046af7b19f3 (diff) | |
download | jgit-91b1fe4687c3bff3195e6f2ff207ea96fa626cca.tar.gz jgit-91b1fe4687c3bff3195e6f2ff207ea96fa626cca.zip |
UploadPack: Suppress false-positive resource leak warning
Change-Id: Ida09cabb11740e6752a6f079d0528d38021fa2dd
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java index 19c5e530e4..638d9325ee 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java @@ -2120,6 +2120,7 @@ public class UploadPack { : req.getDepth() - 1; pw.setShallowPack(req.getDepth(), unshallowCommits); + @SuppressWarnings("resource") // Ownership is transferred below DepthWalk.RevWalk dw = new DepthWalk.RevWalk( walk.getObjectReader(), walkDepth); dw.setDeepenSince(req.getDeepenSince()); |