From: markt Date: Sun, 29 Aug 2010 14:20:58 +0000 (+0000) Subject: Fix warnings X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ffc14533ef5bc39afcf67d14286b4da5971a4221;p=tomcat7.0 Fix warnings git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@990583 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/core/AsyncContextImpl.java b/java/org/apache/catalina/core/AsyncContextImpl.java index 955e77c19..b636bc693 100644 --- a/java/org/apache/catalina/core/AsyncContextImpl.java +++ b/java/org/apache/catalina/core/AsyncContextImpl.java @@ -132,6 +132,7 @@ public class AsyncContextImpl implements AsyncContext { final HttpServletRequest servletRequest = (HttpServletRequest)getRequest(); final HttpServletResponse servletResponse = (HttpServletResponse)getResponse(); Runnable run = new Runnable() { + @Override public void run() { DispatcherType type = (DispatcherType)request.getAttribute(Globals.DISPATCHER_TYPE_ATTR); try { @@ -397,10 +398,12 @@ public class AsyncContextImpl implements AsyncContext { state.set(st); } + @Override public long getTimeout() { return timeout; } + @Override public void setTimeout(long timeout) { this.timeout = timeout; request.getCoyoteRequest().action(ActionCode.ACTION_ASYNC_SETTIMEOUT,new Long(timeout)); @@ -476,6 +479,7 @@ public class AsyncContextImpl implements AsyncContext { this.cl = cl; } + @Override public Void run() { Thread.currentThread().setContextClassLoader(cl); return null; @@ -485,6 +489,7 @@ public class AsyncContextImpl implements AsyncContext { private static class PrivilegedGetTccl implements PrivilegedAction { + @Override public ClassLoader run() { return Thread.currentThread().getContextClassLoader(); }