Author: markt Date: Tue May 30 08:35:03 2017 New Revision: 1796795 URL: http://svn.apache.org/viewvc?rev=1796795&view=rev Log: Refactor - reduce duplication
Modified: tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java Modified: tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java?rev=1796795&r1=1796794&r2=1796795&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java (original) +++ tomcat/trunk/java/org/apache/jasper/JspCompilationContext.java Tue May 30 08:35:03 2017 @@ -242,15 +242,9 @@ public class JspCompilationContext { Compiler compiler = null; try { compiler = (Compiler) Class.forName(className).newInstance(); - } catch (InstantiationException e) { + } catch (InstantiationException | IllegalAccessException e) { log.warn(Localizer.getMessage("jsp.error.compiler"), e); - } catch (IllegalAccessException e) { - log.warn(Localizer.getMessage("jsp.error.compiler"), e); - } catch (NoClassDefFoundError e) { - if (log.isDebugEnabled()) { - log.debug(Localizer.getMessage("jsp.error.compiler"), e); - } - } catch (ClassNotFoundException e) { + } catch (NoClassDefFoundError | ClassNotFoundException e) { if (log.isDebugEnabled()) { log.debug(Localizer.getMessage("jsp.error.compiler"), e); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org