Skip to content

Commit

Permalink
Add missing @OVERRIDES
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Thomas <markt@apache.org>
  • Loading branch information
markt-asf committed Aug 28, 2018
1 parent ef6ce3c commit ec379f2
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/javax/servlet/GenericServlet.java
Expand Up @@ -72,6 +72,7 @@ public GenericServlet() { }
*
*
*/
@Override
public void destroy() {
}

Expand All @@ -92,6 +93,7 @@ public void destroy() {
* of the initialization parameter
*
*/
@Override
public String getInitParameter(String name) {
ServletConfig sc = getServletConfig();
if (sc == null) {
Expand All @@ -118,6 +120,7 @@ public String getInitParameter(String name) {
* objects containing the names of
* the servlet's initialization parameters
*/
@Override
public Enumeration<String> getInitParameterNames() {
ServletConfig sc = getServletConfig();
if (sc == null) {
Expand All @@ -135,6 +138,7 @@ public Enumeration<String> getInitParameterNames() {
* @return ServletConfig the <code>ServletConfig</code> object
* that initialized this servlet
*/
@Override
public ServletConfig getServletConfig() {
return config;
}
Expand All @@ -152,6 +156,7 @@ public ServletConfig getServletConfig() {
* passed to this servlet by the <code>init</code>
* method
*/
@Override
public ServletContext getServletContext() {
ServletConfig sc = getServletConfig();
if (sc == null) {
Expand All @@ -174,6 +179,7 @@ public ServletContext getServletContext() {
* @return String information about this servlet, by default an
* empty string
*/
@Override
public String getServletInfo() {
return "";
}
Expand All @@ -198,6 +204,7 @@ public String getServletInfo() {
*
* @see UnavailableException
*/
@Override
public void init(ServletConfig config) throws ServletException {
this.config = config;
this.init();
Expand Down Expand Up @@ -274,6 +281,7 @@ public void log(String message, Throwable t) {
* exception occurs
*/

@Override
public abstract void service(ServletRequest req, ServletResponse res)
throws ServletException, IOException;

Expand All @@ -284,6 +292,7 @@ public abstract void service(ServletRequest req, ServletResponse res)
*
* @return the name of this servlet instance
*/
@Override
public String getServletName() {
ServletConfig sc = getServletConfig();
if (sc == null) {
Expand Down
37 changes: 37 additions & 0 deletions src/main/java/javax/servlet/ServletRequestWrapper.java
Expand Up @@ -84,6 +84,7 @@ public void setRequest(ServletRequest request) {
* The default behavior of this method is to call getAttribute(String name)
* on the wrapped request object.
*/
@Override
public Object getAttribute(String name) {
return this.request.getAttribute(name);
}
Expand All @@ -93,6 +94,7 @@ public Object getAttribute(String name) {
* The default behavior of this method is to return getAttributeNames()
* on the wrapped request object.
*/
@Override
public Enumeration<String> getAttributeNames() {
return this.request.getAttributeNames();
}
Expand All @@ -102,6 +104,7 @@ public Enumeration<String> getAttributeNames() {
* The default behavior of this method is to return getCharacterEncoding()
* on the wrapped request object.
*/
@Override
public String getCharacterEncoding() {
return this.request.getCharacterEncoding();
}
Expand All @@ -111,6 +114,7 @@ public String getCharacterEncoding() {
* The default behavior of this method is to set the character encoding
* on the wrapped request object.
*/
@Override
public void setCharacterEncoding(String enc)
throws UnsupportedEncodingException {
this.request.setCharacterEncoding(enc);
Expand All @@ -121,6 +125,7 @@ public void setCharacterEncoding(String enc)
* The default behavior of this method is to return getContentLength()
* on the wrapped request object.
*/
@Override
public int getContentLength() {
return this.request.getContentLength();
}
Expand All @@ -131,6 +136,7 @@ public int getContentLength() {
*
* @since Servlet 3.1
*/
@Override
public long getContentLengthLong() {
return this.request.getContentLengthLong();
}
Expand All @@ -140,6 +146,7 @@ public long getContentLengthLong() {
* The default behavior of this method is to return getContentType()
* on the wrapped request object.
*/
@Override
public String getContentType() {
return this.request.getContentType();
}
Expand All @@ -149,6 +156,7 @@ public String getContentType() {
* The default behavior of this method is to return getInputStream()
* on the wrapped request object.
*/
@Override
public ServletInputStream getInputStream() throws IOException {
return this.request.getInputStream();
}
Expand All @@ -158,6 +166,7 @@ public ServletInputStream getInputStream() throws IOException {
* The default behavior of this method is to return
* getParameter(String name) on the wrapped request object.
*/
@Override
public String getParameter(String name) {
return this.request.getParameter(name);
}
Expand All @@ -167,6 +176,7 @@ public String getParameter(String name) {
* The default behavior of this method is to return getParameterMap()
* on the wrapped request object.
*/
@Override
public Map<String, String[]> getParameterMap() {
return this.request.getParameterMap();
}
Expand All @@ -176,6 +186,7 @@ public Map<String, String[]> getParameterMap() {
* The default behavior of this method is to return getParameterNames()
* on the wrapped request object.
*/
@Override
public Enumeration<String> getParameterNames() {
return this.request.getParameterNames();
}
Expand All @@ -185,6 +196,7 @@ public Enumeration<String> getParameterNames() {
* The default behavior of this method is to return
* getParameterValues(String name) on the wrapped request object.
*/
@Override
public String[] getParameterValues(String name) {
return this.request.getParameterValues(name);
}
Expand All @@ -194,6 +206,7 @@ public String[] getParameterValues(String name) {
* The default behavior of this method is to return getProtocol()
* on the wrapped request object.
*/
@Override
public String getProtocol() {
return this.request.getProtocol();
}
Expand All @@ -203,6 +216,7 @@ public String getProtocol() {
* The default behavior of this method is to return getScheme()
* on the wrapped request object.
*/
@Override
public String getScheme() {
return this.request.getScheme();
}
Expand All @@ -212,6 +226,7 @@ public String getScheme() {
* The default behavior of this method is to return getServerName()
* on the wrapped request object.
*/
@Override
public String getServerName() {
return this.request.getServerName();
}
Expand All @@ -221,6 +236,7 @@ public String getServerName() {
* The default behavior of this method is to return getServerPort()
* on the wrapped request object.
*/
@Override
public int getServerPort() {
return this.request.getServerPort();
}
Expand All @@ -230,6 +246,7 @@ public int getServerPort() {
* The default behavior of this method is to return getReader()
* on the wrapped request object.
*/
@Override
public BufferedReader getReader() throws IOException {
return this.request.getReader();
}
Expand All @@ -239,6 +256,7 @@ public BufferedReader getReader() throws IOException {
* The default behavior of this method is to return getRemoteAddr()
* on the wrapped request object.
*/
@Override
public String getRemoteAddr() {
return this.request.getRemoteAddr();
}
Expand All @@ -248,6 +266,7 @@ public String getRemoteAddr() {
* The default behavior of this method is to return getRemoteHost()
* on the wrapped request object.
*/
@Override
public String getRemoteHost() {
return this.request.getRemoteHost();
}
Expand All @@ -257,6 +276,7 @@ public String getRemoteHost() {
* The default behavior of this method is to return
* setAttribute(String name, Object o) on the wrapped request object.
*/
@Override
public void setAttribute(String name, Object o) {
this.request.setAttribute(name, o);
}
Expand All @@ -266,6 +286,7 @@ public void setAttribute(String name, Object o) {
* The default behavior of this method is to call
* removeAttribute(String name) on the wrapped request object.
*/
@Override
public void removeAttribute(String name) {
this.request.removeAttribute(name);
}
Expand All @@ -275,6 +296,7 @@ public void removeAttribute(String name) {
* The default behavior of this method is to return getLocale()
* on the wrapped request object.
*/
@Override
public Locale getLocale() {
return this.request.getLocale();
}
Expand All @@ -284,6 +306,7 @@ public Locale getLocale() {
* The default behavior of this method is to return getLocales()
* on the wrapped request object.
*/
@Override
public Enumeration<Locale> getLocales() {
return this.request.getLocales();
}
Expand All @@ -293,6 +316,7 @@ public Enumeration<Locale> getLocales() {
* The default behavior of this method is to return isSecure()
* on the wrapped request object.
*/
@Override
public boolean isSecure() {
return this.request.isSecure();
}
Expand All @@ -302,6 +326,7 @@ public boolean isSecure() {
* The default behavior of this method is to return
* getRequestDispatcher(String path) on the wrapped request object.
*/
@Override
public RequestDispatcher getRequestDispatcher(String path) {
return this.request.getRequestDispatcher(path);
}
Expand All @@ -314,6 +339,7 @@ public RequestDispatcher getRequestDispatcher(String path) {
* @deprecated As of Version 2.1 of the Java Servlet API,
* use {@link ServletContext#getRealPath} instead
*/
@Override
@Deprecated
public String getRealPath(String path) {
return this.request.getRealPath(path);
Expand All @@ -326,6 +352,7 @@ public String getRealPath(String path) {
*
* @since Servlet 2.4
*/
@Override
public int getRemotePort(){
return this.request.getRemotePort();
}
Expand All @@ -337,6 +364,7 @@ public int getRemotePort(){
*
* @since Servlet 2.4
*/
@Override
public String getLocalName(){
return this.request.getLocalName();
}
Expand All @@ -348,6 +376,7 @@ public String getLocalName(){
*
* @since Servlet 2.4
*/
@Override
public String getLocalAddr(){
return this.request.getLocalAddr();
}
Expand All @@ -359,6 +388,7 @@ public String getLocalAddr(){
*
* @since Servlet 2.4
*/
@Override
public int getLocalPort(){
return this.request.getLocalPort();
}
Expand All @@ -373,6 +403,7 @@ public int getLocalPort(){
*
* @since Servlet 3.0
*/
@Override
public ServletContext getServletContext() {
return request.getServletContext();
}
Expand All @@ -397,6 +428,7 @@ public ServletContext getServletContext() {
*
* @since Servlet 3.0
*/
@Override
public AsyncContext startAsync() throws IllegalStateException {
return request.startAsync();
}
Expand Down Expand Up @@ -427,6 +459,7 @@ public AsyncContext startAsync() throws IllegalStateException {
*
* @since Servlet 3.0
*/
@Override
public AsyncContext startAsync(ServletRequest servletRequest,
ServletResponse servletResponse)
throws IllegalStateException {
Expand All @@ -444,6 +477,7 @@ public AsyncContext startAsync(ServletRequest servletRequest,
*
* @since Servlet 3.0
*/
@Override
public boolean isAsyncStarted() {
return request.isAsyncStarted();
}
Expand All @@ -459,6 +493,7 @@ public boolean isAsyncStarted() {
*
* @since Servlet 3.0
*/
@Override
public boolean isAsyncSupported() {
return request.isAsyncSupported();
}
Expand All @@ -483,6 +518,7 @@ public boolean isAsyncSupported() {
*
* @since Servlet 3.0
*/
@Override
public AsyncContext getAsyncContext() {
return request.getAsyncContext();
}
Expand Down Expand Up @@ -550,6 +586,7 @@ public boolean isWrapperFor(Class<?> wrappedType) {
*
* @since Servlet 3.0
*/
@Override
public DispatcherType getDispatcherType() {
return request.getDispatcherType();
}
Expand Down

0 comments on commit ec379f2

Please sign in to comment.