]> source.dussan.org Git - jgit.git/commitdiff
Add comment to explain why try-with-resource is not used 03/190703/7
authorFabio Ponciroli <ponch78@gmail.com>
Fri, 11 Feb 2022 08:30:31 +0000 (09:30 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 22 Feb 2022 12:55:27 +0000 (13:55 +0100)
Change-Id: I904f9890428334bdf2971511e0b2681f3da5a82a

org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/UploadPackServlet.java

index 2759b8a0feaffbc46c583d67c026a34e33cd334b..77ed09cdfb34b4c8a8c87c26528360791a82d176 100644 (file)
@@ -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