Browse Source

Suppress two resource warnings

Change-Id: I829bb135b2347f79aa6d8979a0934042e40d212f
stable-2.2
Robin Rosenberg 12 years ago committed by GlobalConfig
parent
commit
9b86cf574b
  1. 2
      org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java

2
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);

Loading…
Cancel
Save