From 9b86cf574b230a9b3a71d7cb53a4f6712bfa33eb Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Sun, 5 Aug 2012 12:53:09 +0200 Subject: [PATCH] Suppress two resource warnings Change-Id: I829bb135b2347f79aa6d8979a0934042e40d212f --- org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java index 32b830251..c7a94b29e 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java @@ -1079,6 +1079,7 @@ public class UploadPack { private boolean reportInternalServerErrorOverSideband() { try { + @SuppressWarnings("resource") SideBandOutputStream err = new SideBandOutputStream( SideBandOutputStream.CH_ERROR, SideBandOutputStream.SMALL_BUF, @@ -1120,6 +1121,7 @@ public class UploadPack { } catch (ServiceMayNotContinueException noPack) { if (sideband && noPack.getMessage() != null) { noPack.setOutput(); + @SuppressWarnings("resource") SideBandOutputStream err = new SideBandOutputStream( SideBandOutputStream.CH_ERROR, SideBandOutputStream.SMALL_BUF, rawOut);