Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse2018-09-13 22:35:02 -0400
committerMatthias Sohn2018-09-15 16:30:29 -0400
commitb5ffea9e8e202b05077d8a325e446d1f47214e2b (patch)
tree1f526c2eb5181e8f63430a6a462748d94a18c0c2 /org.eclipse.jgit.http.server/src
parent50deacdd57cd348554264fe26f3fd8177830071d (diff)
downloadjgit-b5ffea9e8e202b05077d8a325e446d1f47214e2b.tar.gz
jgit-b5ffea9e8e202b05077d8a325e446d1f47214e2b.tar.xz
jgit-b5ffea9e8e202b05077d8a325e446d1f47214e2b.zip
SmartOutputStream: Suppress false-positive resource leak warning
Change-Id: I013841ed2584f061c680a8adf0f777dcae3c5418 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.http.server/src')
-rw-r--r--org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/SmartOutputStream.java1
1 files changed, 1 insertions, 0 deletions
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 ad5e8d479e..06bdce679d 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)) {

Back to the top