This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 16ef4db401a9265a06c5a701b2586e35905f2fbc Author: Mark Thomas <[email protected]> AuthorDate: Sat Nov 6 08:53:11 2021 +0000 Complete some Javadoc TODOs While the Javadoc needed to be written, the primary motivation for this commit was triggering a CI build. --- java/javax/servlet/ServletContext.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/java/javax/servlet/ServletContext.java b/java/javax/servlet/ServletContext.java index 2aea8ea..67ddd99 100644 --- a/java/javax/servlet/ServletContext.java +++ b/java/javax/servlet/ServletContext.java @@ -634,11 +634,15 @@ public interface ServletContext { Class<? extends Servlet> servletClass); /** - * TODO SERVLET3 - Add comments - * @param <T> TODO - * @param c TODO - * @return TODO - * @throws ServletException TODO + * Create an Servlet instance using the given class. The instance is just + * created. No initialisation occurs. + * + * @param <T> The type for the given class + * @param c The the class for which an instance should be created + * + * @return The created Servlet instance. + * + * @throws ServletException If the servlet instance cannot be created. * @throws UnsupportedOperationException If called from a * {@link ServletContextListener#contextInitialized(ServletContextEvent)} * method of a {@link ServletContextListener} that was not defined in a @@ -646,6 +650,7 @@ public interface ServletContext { * {@link javax.servlet.annotation.WebListener}. For example, a * {@link ServletContextListener} defined in a TLD would not be able to * use this method. + * * @since Servlet 3.0 */ public <T extends Servlet> T createServlet(Class<T> c) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
