tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r992895 - /tomcat/trunk/java/org/apache/catalina/core/AsyncContextImpl.java
Date Sun, 05 Sep 2010 21:08:43 GMT
Author: markt
Date: Sun Sep  5 21:08:42 2010
New Revision: 992895

URL: http://svn.apache.org/viewvc?rev=992895&view=rev
Log:
Misc code clean-up.

Modified:
    tomcat/trunk/java/org/apache/catalina/core/AsyncContextImpl.java

Modified: tomcat/trunk/java/org/apache/catalina/core/AsyncContextImpl.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/AsyncContextImpl.java?rev=992895&r1=992894&r2=992895&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/AsyncContextImpl.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/AsyncContextImpl.java Sun Sep  5 21:08:42 2010
@@ -217,7 +217,7 @@ public class AsyncContextImpl implements
                 }
             }
         } else {
-            throw new IllegalStateException("Dispatch not allowed. Invalid state:"+state.get());
+            throw new IllegalStateException("Start not allowed. Invalid state:"+state.get());
         }
     }
     
@@ -298,10 +298,6 @@ public class AsyncContextImpl implements
         return (state.get()==AsyncState.NOT_STARTED);
     }
 
-    public void setCompleted() {
-        this.state.set(AsyncState.NOT_STARTED);
-    }
-    
     public void doInternalDispatch() throws ServletException, IOException {
         if (this.state.compareAndSet(AsyncState.TIMING_OUT,
                 AsyncState.TIMING_OUT_NEED_COMPLETE)) {
@@ -408,7 +404,8 @@ public class AsyncContextImpl implements
     @Override
     public void setTimeout(long timeout) {
         this.timeout = timeout;
-        request.getCoyoteRequest().action(ActionCode.ACTION_ASYNC_SETTIMEOUT,new Long(timeout));
+        request.getCoyoteRequest().action(ActionCode.ACTION_ASYNC_SETTIMEOUT,
+                Long.valueOf(timeout));
     }
     
     public void setTimeoutState() {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message