Author: markt Date: Fri Aug 10 15:46:39 2018 New Revision: 1837818 URL: http://svn.apache.org/viewvc?rev=1837818&view=rev Log: Remove ServletException from declaration of Tomcat.addWebapp(String,String) since it is never thrown. Patch provided by Tzafrir. This closes #114
Modified: tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java tomcat/trunk/webapps/docs/changelog.xml Modified: tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java?rev=1837818&r1=1837817&r2=1837818&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java (original) +++ tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java Fri Aug 10 15:46:39 2018 @@ -218,9 +218,8 @@ public class Tomcat { * @param docBase Base directory for the context, for static files. * Must exist, relative to the server home * @return the deployed context - * @throws ServletException if a deployment error occurs */ - public Context addWebapp(String contextPath, String docBase) throws ServletException { + public Context addWebapp(String contextPath, String docBase) { return addWebapp(getHost(), contextPath, docBase); } Modified: tomcat/trunk/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1837818&r1=1837817&r2=1837818&view=diff ============================================================================== --- tomcat/trunk/webapps/docs/changelog.xml (original) +++ tomcat/trunk/webapps/docs/changelog.xml Fri Aug 10 15:46:39 2018 @@ -109,6 +109,11 @@ <scode> Simplify construction of appName from container name in JAASRealm. (fschumacher) </scode> + <scode> + Remove <code>ServletException</code> from declaration of + <code>Tomcat.addWebapp(String,String)</code> since it is never thrown. + Patch provided by Tzafrir. (markt) + </scode> </changelog> </subsection> <subsection name="Coyote"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org