Browse Source

ReceivePack: Use Java 7 multi-catch for unpackError

Change-Id: I328f5952f23185a7d8f81a144979b4f8a095bd60
stable-4.5
Shawn Pearce 8 years ago
parent
commit
60ca93798c
  1. 6
      org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java

6
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java

@ -190,11 +190,7 @@ public class ReceivePack extends BaseReceivePack {
if (needPack()) { if (needPack()) {
try { try {
receivePackAndCheckConnectivity(); receivePackAndCheckConnectivity();
} catch (IOException err) { } catch (IOException | RuntimeException | Error err) {
unpackError = err;
} catch (RuntimeException err) {
unpackError = err;
} catch (Error err) {
unpackError = err; unpackError = err;
} }
} }

Loading…
Cancel
Save