From 60ca93798ccb780ed02df1db12b9ce75bdbb9925 Mon Sep 17 00:00:00 2001 From: Shawn Pearce Date: Tue, 5 Jul 2016 12:35:26 -0700 Subject: [PATCH] ReceivePack: Use Java 7 multi-catch for unpackError Change-Id: I328f5952f23185a7d8f81a144979b4f8a095bd60 --- .../src/org/eclipse/jgit/transport/ReceivePack.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java index f61e93fff2..1dd58d0d76 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java @@ -190,11 +190,7 @@ public class ReceivePack extends BaseReceivePack { if (needPack()) { try { receivePackAndCheckConnectivity(); - } catch (IOException err) { - unpackError = err; - } catch (RuntimeException err) { - unpackError = err; - } catch (Error err) { + } catch (IOException | RuntimeException | Error err) { unpackError = err; } } -- 2.39.5