diff src/org/eclipse/jetty/server/AsyncContinuation.java @ 928:23a57aad34c0

remove isAsync()
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 09 Oct 2016 18:54:32 -0600
parents 1c1c350fbe4b
children 3191abe890ef
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/AsyncContinuation.java	Sun Oct 09 18:34:24 2016 -0600
+++ b/src/org/eclipse/jetty/server/AsyncContinuation.java	Sun Oct 09 18:54:32 2016 -0600
@@ -288,22 +288,16 @@
 	 * @return true if handling is complete, false if the request should 
 	 * be handled again (eg because of a resume that happened before unhandle was called)
 	 */
-	protected boolean unhandle()
+	protected synchronized void unhandle()
 	{
-		synchronized (this)
+		switch(_state)
 		{
-			switch(_state)
-			{
-				case __DISPATCHED:
-					_state = __UNCOMPLETED;
-					return true;
+			case __DISPATCHED:
+				_state = __UNCOMPLETED;
+				return;
 
-				case __IDLE:
-					throw new IllegalStateException(this.getStatusString());
-
-				default:
-					throw new IllegalStateException(this.getStatusString());
-			}
+			default:
+				throw new IllegalStateException(this.getStatusString());
 		}
 	}
 
@@ -500,25 +494,6 @@
 		}
 	}
 
-
-	public boolean isAsync()
-	{
-		synchronized (this)
-		{
-			switch(_state)
-			{
-				case __IDLE:
-				case __DISPATCHED:
-				case __UNCOMPLETED:
-				case __COMPLETED:
-					return false;
-
-				default:
-					return true;
-			}
-		}
-	}
-
 	/* ------------------------------------------------------------ */
 	public void dispatch(ServletContext context, String path)
 	{