From 73831b34b848ca739f27fe7ba207eae5dca8bb54 Mon Sep 17 00:00:00 2001 From: Fabio Ponciroli Date: Fri, 11 Feb 2022 09:30:31 +0100 Subject: [PATCH] Add comment to explain why try-with-resource is not used Change-Id: I904f9890428334bdf2971511e0b2681f3da5a82a --- .../src/org/eclipse/jgit/http/server/UploadPackServlet.java | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5