Polish: combine catches block with same body
This commit is contained in:
committed by
Juergen Hoeller
parent
f835f7b500
commit
7bce04c06c
@@ -499,11 +499,7 @@ public abstract class FrameworkServlet extends HttpServletBean implements Applic
|
||||
this.webApplicationContext = initWebApplicationContext();
|
||||
initFrameworkServlet();
|
||||
}
|
||||
catch (ServletException ex) {
|
||||
this.logger.error("Context initialization failed", ex);
|
||||
throw ex;
|
||||
}
|
||||
catch (RuntimeException ex) {
|
||||
catch (ServletException | RuntimeException ex) {
|
||||
this.logger.error("Context initialization failed", ex);
|
||||
throw ex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user