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
The following commit(s) were added to refs/heads/8.5.x by this push: new 0b12e91 Complete a Javadoc TODO 0b12e91 is described below commit 0b12e911742554ecf75da8d3209adda6c080a292 Author: Mark Thomas <ma...@apache.org> AuthorDate: Sat Nov 6 22:20:57 2021 +0000 Complete a Javadoc TODO Primarily for testing CI --- java/javax/servlet/ServletContext.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/java/javax/servlet/ServletContext.java b/java/javax/servlet/ServletContext.java index 67ddd99..301eb1f 100644 --- a/java/javax/servlet/ServletContext.java +++ b/java/javax/servlet/ServletContext.java @@ -678,8 +678,12 @@ public interface ServletContext { public ServletRegistration getServletRegistration(String servletName); /** - * TODO SERVLET3 - Add comments - * @return TODO + * Obtain a Map of servlet names to servlet registrations for all servlets + * registered with this context. + * + * @return A Map of servlet names to servlet registrations for all servlets + * registered with this context + * * @throws UnsupportedOperationException If called from a * {@link ServletContextListener#contextInitialized(ServletContextEvent)} * method of a {@link ServletContextListener} that was not defined in a @@ -687,6 +691,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 Map<String, ? extends ServletRegistration> getServletRegistrations(); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org