mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 02:26:18 +00:00
Multi-catch refactoring when applicable
This commit is contained in:
1 parent
8ff2ca4c10
commit
8b3e4f43a2
21 files changed
+30
-94
No files matched your search
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user