From b5ffea9e8e202b05077d8a325e446d1f47214e2b Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Fri, 14 Sep 2018 11:35:02 +0900 Subject: [PATCH] SmartOutputStream: Suppress false-positive resource leak warning Change-Id: I013841ed2584f061c680a8adf0f777dcae3c5418 Signed-off-by: David Pursehouse --- .../src/org/eclipse/jgit/http/server/SmartOutputStream.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/SmartOutputStream.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/SmartOutputStream.java index ad5e8d479..06bdce679 100644 --- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/SmartOutputStream.java +++ b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/SmartOutputStream.java @@ -105,6 +105,7 @@ class SmartOutputStream extends TemporaryBuffer { // If output hasn't started yet, the entire thing fit into our // buffer. Try to use a proper Content-Length header, and also // deflate the response with gzip if it will be smaller. + @SuppressWarnings("resource") TemporaryBuffer out = this; if (256 < out.length() && acceptsGzipEncoding(req)) {