You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2021/11/06 22:21:25 UTC

[tomcat] branch 10.0.x updated: Complete a Javadoc TODO

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.0.x by this push:
     new d9ae418  Complete a Javadoc TODO
d9ae418 is described below

commit d9ae41811a991f4e3c1a8e3f996b217e8bdb1ed5
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Sat Nov 6 22:20:57 2021 +0000

    Complete a Javadoc TODO
    
    Primarily for testing CI
---
 java/jakarta/servlet/ServletContext.java | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/java/jakarta/servlet/ServletContext.java b/java/jakarta/servlet/ServletContext.java
index 1730c79..cd6385d 100644
--- a/java/jakarta/servlet/ServletContext.java
+++ b/java/jakarta/servlet/ServletContext.java
@@ -688,8 +688,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
@@ -697,6 +701,7 @@ public interface ServletContext {
      *    {@link jakarta.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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org