Author: kkolinko
Date: Sun Oct 19 17:15:14 2014
New Revision: 1632956
URL: http://svn.apache.org/r1632956
Log:
Merged r1631568 from tomcat/trunk:
Fix some Javadoc warnings when compiling with Java 8
Modified:
tomcat/tc7.0.x/trunk/ (props changed)
tomcat/tc7.0.x/trunk/java/javax/servlet/ServletContextAttributeListener.java
tomcat/tc7.0.x/trunk/java/javax/servlet/ServletContextListener.java
tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRegistration.java
tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequest.java
tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestAttributeListener.java
tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestEvent.java
tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestListener.java
tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestWrapper.java
tomcat/tc7.0.x/trunk/java/javax/servlet/jsp/JspApplicationContext.java
tomcat/tc7.0.x/trunk/java/javax/servlet/jsp/tagext/TagAttributeInfo.java
Propchange: tomcat/tc7.0.x/trunk/
------------------------------------------------------------------------------
Merged /tomcat/trunk:r1631568
Modified:
tomcat/tc7.0.x/trunk/java/javax/servlet/ServletContextAttributeListener.java
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/javax/servlet/ServletContextAttributeListener.java?rev=1632956&r1=1632955&r2=1632956&view=diff
==============================================================================
---
tomcat/tc7.0.x/trunk/java/javax/servlet/ServletContextAttributeListener.java
(original)
+++
tomcat/tc7.0.x/trunk/java/javax/servlet/ServletContextAttributeListener.java
Sun Oct 19 17:15:14 2014
@@ -32,18 +32,21 @@ public interface ServletContextAttribute
/**
* Notification that a new attribute was added to the servlet context.
* Called after the attribute is added.
+ * @param scae Information about the new attribute
*/
- public void attributeAdded(ServletContextAttributeEvent scab);
+ public void attributeAdded(ServletContextAttributeEvent scae);
/**
* Notification that an existing attribute has been removed from the
servlet
* context. Called after the attribute is removed.
+ * @param scae Information about the removed attribute
*/
- public void attributeRemoved(ServletContextAttributeEvent scab);
+ public void attributeRemoved(ServletContextAttributeEvent scae);
/**
* Notification that an attribute on the servlet context has been replaced.
* Called after the attribute is replaced.
+ * @param scae Information about the replaced attribute
*/
- public void attributeReplaced(ServletContextAttributeEvent scab);
+ public void attributeReplaced(ServletContextAttributeEvent scae);
}
Modified: tomcat/tc7.0.x/trunk/java/javax/servlet/ServletContextListener.java
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/javax/servlet/ServletContextListener.java?rev=1632956&r1=1632955&r2=1632956&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/javax/servlet/ServletContextListener.java
(original)
+++ tomcat/tc7.0.x/trunk/java/javax/servlet/ServletContextListener.java Sun Oct
19 17:15:14 2014
@@ -34,6 +34,7 @@ public interface ServletContextListener
** Notification that the web application initialization process is
starting.
* All ServletContextListeners are notified of context initialization
before
* any filter or servlet in the web application is initialized.
+ * @param sce Information about the ServletContext that was initialized
*/
public void contextInitialized(ServletContextEvent sce);
@@ -41,6 +42,7 @@ public interface ServletContextListener
** Notification that the servlet context is about to be shut down. All
* servlets and filters have been destroy()ed before any
* ServletContextListeners are notified of context destruction.
+ * @param sce Information about the ServletContext that was destroyed
*/
public void contextDestroyed(ServletContextEvent sce);
}
Modified: tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRegistration.java
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRegistration.java?rev=1632956&r1=1632955&r2=1632956&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRegistration.java (original)
+++ tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRegistration.java Sun Oct 19
17:15:14 2014
@@ -26,8 +26,8 @@ import java.util.Set;
public interface ServletRegistration extends Registration {
/**
- *
- * @param urlPatterns
+ * TODO
+ * @param urlPatterns The URL patterns that this Servlet should be mapped
to
* @return TODO
* @throws IllegalArgumentException if urlPattern is null or empty
* @throws IllegalStateException if the associated ServletContext has
Modified: tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequest.java
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequest.java?rev=1632956&r1=1632955&r2=1632956&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequest.java (original)
+++ tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequest.java Sun Oct 19
17:15:14 2014
@@ -380,6 +380,8 @@ public interface ServletRequest {
public RequestDispatcher getRequestDispatcher(String path);
/**
+ * @param path The virtual path to be converted to a real path
+ * @return {@link ServletContext#getRealPath(String)}
* @deprecated As of Version 2.1 of the Java Servlet API, use
* {@link ServletContext#getRealPath} instead.
*/
@@ -433,17 +435,18 @@ public interface ServletRequest {
/**
* @return TODO
- * @throws java.lang.IllegalStateException
- * If async is not supported for this request
+ * @throws IllegalStateException If async is not supported for this request
* @since Servlet 3.0 TODO SERVLET3 - Add comments
*/
public AsyncContext startAsync();
/**
- * @param servletRequest
- * @param servletResponse
+ * @param servletRequest The ServletRequest with which to initialise the
+ * asynchronous context
+ * @param servletResponse The ServletResponse with which to initialise
the
+ * asynchronous context
* @return TODO
- * @throws java.lang.IllegalStateException
+ * @throws IllegalStateException If async is not supported for this request
* @since Servlet 3.0 TODO SERVLET3 - Add comments
*/
public AsyncContext startAsync(ServletRequest servletRequest,
@@ -463,7 +466,7 @@ public interface ServletRequest {
/**
* @return TODO
- * @throws java.lang.IllegalStateException
+ * @throws IllegalStateException if the request is not in asynchronous mode
* @since Servlet 3.0 TODO SERVLET3 - Add comments
*/
public AsyncContext getAsyncContext();
Modified:
tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestAttributeListener.java
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestAttributeListener.java?rev=1632956&r1=1632955&r2=1632956&view=diff
==============================================================================
---
tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestAttributeListener.java
(original)
+++
tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestAttributeListener.java
Sun Oct 19 17:15:14 2014
@@ -18,32 +18,37 @@ package javax.servlet;
import java.util.EventListener;
- /**
- * A ServletRequestAttributeListener can be implemented by the
- * developer interested in being notified of request attribute
- * changes. Notifications will be generated while the request
- * is within the scope of the web application in which the listener
- * is registered. A request is defined as coming into scope when
- * it is about to enter the first servlet or filter in each web
- * application, as going out of scope when it exits the last servlet
- * or the first filter in the chain.
- *
- * @since Servlet 2.4
- */
-
+/**
+ * A ServletRequestAttributeListener can be implemented by the
+ * developer interested in being notified of request attribute
+ * changes. Notifications will be generated while the request
+ * is within the scope of the web application in which the listener
+ * is registered. A request is defined as coming into scope when
+ * it is about to enter the first servlet or filter in each web
+ * application, as going out of scope when it exits the last servlet
+ * or the first filter in the chain.
+ *
+ * @since Servlet 2.4
+ */
public interface ServletRequestAttributeListener extends EventListener {
- /** Notification that a new attribute was added to the
- ** servlet request. Called after the attribute is added.
+ /**
+ * Notification that a new attribute was added to the
+ * servlet request. Called after the attribute is added.
+ * @param srae Information about the new request attribute
*/
public void attributeAdded(ServletRequestAttributeEvent srae);
- /** Notification that an existing attribute has been removed from the
- ** servlet request. Called after the attribute is removed.
+ /**
+ * Notification that an existing attribute has been removed from the
+ * servlet request. Called after the attribute is removed.
+ * @param srae Information about the removed request attribute
*/
public void attributeRemoved(ServletRequestAttributeEvent srae);
- /** Notification that an attribute was replaced on the
- ** servlet request. Called after the attribute is replaced.
+ /**
+ * Notification that an attribute was replaced on the
+ * servlet request. Called after the attribute is replaced.
+ * @param srae Information about the replaced request attribute
*/
public void attributeReplaced(ServletRequestAttributeEvent srae);
}
Modified: tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestEvent.java
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestEvent.java?rev=1632956&r1=1632955&r2=1632956&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestEvent.java (original)
+++ tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestEvent.java Sun Oct 19
17:15:14 2014
@@ -43,14 +43,16 @@ public class ServletRequestEvent extends
}
/**
- * Returns the ServletRequest that is changing.
+ * Get the associated ServletRequest.
+ * @return the ServletRequest that is changing.
*/
public ServletRequest getServletRequest() {
return this.request;
}
/**
- * Returns the ServletContext of this web application.
+ * Get the associated ServletContext.
+ * @return the ServletContext that is changing.
*/
public ServletContext getServletContext() {
return (ServletContext) super.getSource();
Modified: tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestListener.java
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestListener.java?rev=1632956&r1=1632955&r2=1632956&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestListener.java
(original)
+++ tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestListener.java Sun Oct
19 17:15:14 2014
@@ -18,23 +18,27 @@ package javax.servlet;
import java.util.EventListener;
- /**
- * A ServletRequestListener can be implemented by the developer
- * interested in being notified of requests coming in and out of
- * scope in a web component. A request is defined as coming into
- * scope when it is about to enter the first servlet or filter
- * in each web application, as going out of scope when it exits
- * the last servlet or the first filter in the chain.
- *
- * @since Servlet 2.4
- */
-
-
+/**
+ * A ServletRequestListener can be implemented by the developer
+ * interested in being notified of requests coming in and out of
+ * scope in a web component. A request is defined as coming into
+ * scope when it is about to enter the first servlet or filter
+ * in each web application, as going out of scope when it exits
+ * the last servlet or the first filter in the chain.
+ *
+ * @since Servlet 2.4
+ */
public interface ServletRequestListener extends EventListener {
- /** The request is about to go out of scope of the web application. */
- public void requestDestroyed ( ServletRequestEvent sre );
+ /**
+ * The request is about to go out of scope of the web application.
+ * @param sre Information about the request
+ */
+ public void requestDestroyed (ServletRequestEvent sre);
- /** The request is about to come into scope of the web application. */
- public void requestInitialized ( ServletRequestEvent sre );
+ /**
+ * The request is about to come into scope of the web application.
+ * @param sre Information about the request
+ */
+ public void requestInitialized (ServletRequestEvent sre);
}
Modified: tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestWrapper.java
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestWrapper.java?rev=1632956&r1=1632955&r2=1632956&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestWrapper.java
(original)
+++ tomcat/tc7.0.x/trunk/java/javax/servlet/ServletRequestWrapper.java Sun Oct
19 17:15:14 2014
@@ -37,8 +37,7 @@ public class ServletRequestWrapper imple
/**
* Creates a ServletRequest adaptor wrapping the given request object.
*
- * @throws java.lang.IllegalArgumentException
- * if the request is null
+ * @throws IllegalArgumentException if the request is null
*/
public ServletRequestWrapper(ServletRequest request) {
if (request == null) {
@@ -48,7 +47,8 @@ public class ServletRequestWrapper imple
}
/**
- * Return the wrapped request object.
+ * Get the wrapped request.
+ * @return the wrapped request object
*/
public ServletRequest getRequest() {
return this.request;
@@ -56,9 +56,9 @@ public class ServletRequestWrapper imple
/**
* Sets the request object being wrapped.
- *
- * @throws java.lang.IllegalArgumentException
- * if the request is null.
+ * @param request The new wrapped request.
+ *
+ * @throws IllegalArgumentException if the request is null.
*/
public void setRequest(ServletRequest request) {
if (request == null) {
@@ -356,7 +356,9 @@ public class ServletRequestWrapper imple
* The default behavior of this method is to return startAsync() on the
* wrapped request object.
*
- * @throws java.lang.IllegalStateException
+ * @throws IllegalStateException If asynchronous processing is not
supported
+ * for this request or if the request is already in asynchronous
+ * mode
* @since Servlet 3.0
*/
@Override
@@ -368,9 +370,13 @@ public class ServletRequestWrapper imple
* The default behavior of this method is to return startAsync(Runnable) on
* the wrapped request object.
*
- * @param servletRequest
- * @param servletResponse
- * @throws java.lang.IllegalStateException
+ * @param servletRequest The ServletRequest with which to initialise the
+ * asynchronous context
+ * @param servletResponse The ServletResponse with which to initialise
the
+ * asynchronous context
+ * @throws IllegalStateException If asynchronous processing is not
supported
+ * for this request or if the request is already in asynchronous
+ * mode
* @since Servlet 3.0
*/
@Override
@@ -413,8 +419,12 @@ public class ServletRequestWrapper imple
}
/**
- * @param wrapped
- * @since Servlet 3.0 TODO SERVLET3 - Add comments
+ * TODO SERVLET3 - Add comments
+ * @param wrapped The request to compare to the wrapped request
+ * @return <code>true</code> if the request wrapped by this wrapper (or
+ * series of wrappers) is the same as the supplied request,
+ * otherwise <code>false</code>
+ * @since Servlet 3.0
*/
public boolean isWrapperFor(ServletRequest wrapped) {
if (request == wrapped) {
@@ -427,8 +437,13 @@ public class ServletRequestWrapper imple
}
/**
- * @param wrappedType
- * @since Servlet 3.0 TODO SERVLET3 - Add comments
+ * TODO SERVLET3 - Add comments
+ * @param wrappedType The class to compare to the class of the wrapped
+ * request
+ * @return <code>true</code> if the request wrapped by this wrapper (or
+ * series of wrappers) is the same type as the supplied type,
+ * otherwise <code>false</code>
+ * @since Servlet 3.0
*/
@SuppressWarnings("unchecked")
// Spec API does not use generics
Modified: tomcat/tc7.0.x/trunk/java/javax/servlet/jsp/JspApplicationContext.java
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/javax/servlet/jsp/JspApplicationContext.java?rev=1632956&r1=1632955&r2=1632956&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/javax/servlet/jsp/JspApplicationContext.java
(original)
+++ tomcat/tc7.0.x/trunk/java/javax/servlet/jsp/JspApplicationContext.java Sun
Oct 19 17:15:14 2014
@@ -30,17 +30,14 @@ import javax.el.ExpressionFactory;
public interface JspApplicationContext {
/**
- * <p>
- * Registers an <code>ELContextListener</code> that will notified whenever
a
- * new <code>ELContext</code> is created.
- * </p>
+ * Registers an <code>ELContextListener</code> that will be notified
+ * whenever a new <code>ELContext</code> is created.
* <p>
* At the very least, any <code>ELContext</code> instantiated will have
* reference to the <code>JspContext</code> under
* <code>JspContext.class</code>.
- * </p>
*
- * @param listener
+ * @param listener The listener to add
*/
public void addELContextListener(ELContextListener listener);
Modified:
tomcat/tc7.0.x/trunk/java/javax/servlet/jsp/tagext/TagAttributeInfo.java
URL:
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/javax/servlet/jsp/tagext/TagAttributeInfo.java?rev=1632956&r1=1632955&r2=1632956&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/javax/servlet/jsp/tagext/TagAttributeInfo.java
(original)
+++ tomcat/tc7.0.x/trunk/java/javax/servlet/jsp/tagext/TagAttributeInfo.java
Sun Oct 19 17:15:14 2014
@@ -48,7 +48,6 @@ public class TagAttributeInfo {
* @param reqTime
* Whether this attribute holds a request-time Attribute.
*/
-
public TagAttributeInfo(String name, boolean required, String type,
boolean reqTime) {
this(name, required, type, reqTime, false);
@@ -72,13 +71,41 @@ public class TagAttributeInfo {
*
* @since 2.0
*/
-
public TagAttributeInfo(String name, boolean required, String type,
boolean reqTime, boolean fragment) {
this(name, required, type, reqTime, fragment, null, false, false,
null, null);
}
/**
+ * JSP 2.1 Constructor for TagAttributeInfo. This class is to be
+ * instantiated only from the TagLibrary code under request from some JSP
+ * code that is parsing a TLD (Tag Library Descriptor).
+ *
+ * @param name
+ * The name of the attribute.
+ * @param required
+ * If this attribute is required in tag instances.
+ * @param type
+ * The name of the type of the attribute.
+ * @param reqTime
+ * Whether this attribute holds a request-time Attribute.
+ * @param fragment
+ * Whether this attribute is of type JspFragment
+ * @param description
+ * Description of this attribute
+ * @param deferredValue
+ * Does this attribute accept value expressions (written as
+ * Strings) as attribute values the evaluation of which is
+ * deferred until calculated by the tag
+ * @param deferredMethod
+ * Does this attribute accept method expressions (written as
+ * Strings) as attribute values the evaluation of which is
+ * deferred until calculated by the tag
+ * @param expectedTypeName
+ * The expected type when the deferred value is evaluated
+ * @param methodSignature
+ * The expected method signature if a deferred method
+ *
* @since JSP 2.1
*/
public TagAttributeInfo(String name, boolean required, String type,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]