aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.ssh.apache/src
diff options
context:
space:
mode:
authorCarsten Hammer <carsten.hammer@t-online.de>2019-04-06 18:16:21 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2019-04-13 18:53:58 +0200
commitc0268f899e3e600a45f6c028f4d0088b2fb2fce1 (patch)
treea017363ab828ae957cfa1f0c4ce8f72e268b0139 /org.eclipse.jgit.ssh.apache/src
parent3c1af2761f91ec7c17b648c0537e6c7f1847032e (diff)
downloadjgit-c0268f899e3e600a45f6c028f4d0088b2fb2fce1.tar.gz
jgit-c0268f899e3e600a45f6c028f4d0088b2fb2fce1.zip
Join catch sections using multicatch
Change-Id: I1a9112e6a4f938638c599b489cb0858eca27ab91 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.ssh.apache/src')
-rw-r--r--org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/transport/sshd/SshdSession.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/transport/sshd/SshdSession.java b/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/transport/sshd/SshdSession.java
index 7d0e686a28..1e8d7d1e1e 100644
--- a/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/transport/sshd/SshdSession.java
+++ b/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/transport/sshd/SshdSession.java
@@ -177,10 +177,7 @@ public class SshdSession implements RemoteSession {
timeoutMillis -= TimeUnit.NANOSECONDS
.toMillis(System.nanoTime() - start);
}
- } catch (IOException e) {
- exec.close(true);
- throw e;
- } catch (RuntimeException e) {
+ } catch (IOException | RuntimeException e) {
exec.close(true);
throw e;
}