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 -4
View File
@@ -245,10 +245,7 @@ public class WebAppMain implements ServletContextListener {
initThread.start();
} catch (BootFailure e) {
e.publish(context,home);
} catch (Error e) {
LOGGER.log(SEVERE, "Failed to initialize Jenkins",e);
throw e;
} catch (RuntimeException e) {
} catch (Error | RuntimeException e) {
LOGGER.log(SEVERE, "Failed to initialize Jenkins",e);
throw e;
}