Multi-catch refactoring when applicable

This commit is contained in:
Baptiste Mathus committed 2016-04-12 10:17:42 +02:00
1 parent 8ff2ca4c10
commit 8b3e4f43a2
21 files changed
+30 -94

No files matched your search

+1 -5
View File
@@ -156,11 +156,7 @@ public abstract class Proc {
unit.toString().toLowerCase(Locale.ENGLISH));
kill();
}
} catch (InterruptedException x) {
x.printStackTrace(listener.error("Failed to join a process"));
} catch (IOException x) {
x.printStackTrace(listener.error("Failed to join a process"));
} catch (RuntimeException x) {
} catch (InterruptedException | IOException | RuntimeException x) {
x.printStackTrace(listener.error("Failed to join a process"));
}
}