]> source.dussan.org Git - jgit.git/commitdiff
ReceivePack: Use Java 7 multi-catch for unpackError 49/76649/1
authorShawn Pearce <spearce@spearce.org>
Tue, 5 Jul 2016 19:35:26 +0000 (12:35 -0700)
committerShawn Pearce <spearce@spearce.org>
Tue, 5 Jul 2016 19:35:26 +0000 (12:35 -0700)
Change-Id: I328f5952f23185a7d8f81a144979b4f8a095bd60

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

index f61e93fff29f7f2f71639a18b262e67a9faf9825..1dd58d0d76420963d5234764379d3ad529a06371 100644 (file)
@@ -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;
                                }
                        }