diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2018-09-14 11:35:02 +0900 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2018-09-15 22:30:29 +0200 |
commit | b5ffea9e8e202b05077d8a325e446d1f47214e2b (patch) | |
tree | 1f526c2eb5181e8f63430a6a462748d94a18c0c2 /org.eclipse.jgit.http.server/src/org/eclipse/jgit | |
parent | 50deacdd57cd348554264fe26f3fd8177830071d (diff) | |
download | jgit-b5ffea9e8e202b05077d8a325e446d1f47214e2b.tar.gz 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/org/eclipse/jgit')
-rw-r--r-- | org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/SmartOutputStream.java | 1 |
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)) { |