diff options
author | Fabio Ponciroli <ponch78@gmail.com> | 2022-02-11 09:30:31 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2022-02-22 13:55:27 +0100 |
commit | 73831b34b848ca739f27fe7ba207eae5dca8bb54 (patch) | |
tree | 4f1df619f41218fd845211bd50cbdcfc2877727a /org.eclipse.jgit.http.server/src | |
parent | a7386ffe3aada6d1e0f73536f985dbe21cebadc2 (diff) | |
download | jgit-73831b34b848ca739f27fe7ba207eae5dca8bb54.tar.gz jgit-73831b34b848ca739f27fe7ba207eae5dca8bb54.zip |
Add comment to explain why try-with-resource is not used
Change-Id: I904f9890428334bdf2971511e0b2681f3da5a82a
Diffstat (limited to 'org.eclipse.jgit.http.server/src')
-rw-r--r-- | org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/UploadPackServlet.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/UploadPackServlet.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/UploadPackServlet.java index 2759b8a0fe..77ed09cdfb 100644 --- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/UploadPackServlet.java +++ b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/UploadPackServlet.java @@ -169,6 +169,7 @@ class UploadPackServlet extends HttpServlet { UploadPackRunnable r = () -> { UploadPack up = (UploadPack) req.getAttribute(ATTRIBUTE_HANDLER); + // to be explicitly closed by caller @SuppressWarnings("resource") SmartOutputStream out = new SmartOutputStream(req, rsp, false) { @Override |