diff src/org/eclipse/jetty/server/Response.java @ 983:23ec25435b8c

simplify AbstractGenerator
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 16 Oct 2016 22:58:41 -0600
parents dbecd7faa1f5
children 688c39c50ee3
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/Response.java	Sun Oct 16 21:40:27 2016 -0600
+++ b/src/org/eclipse/jetty/server/Response.java	Sun Oct 16 22:58:41 2016 -0600
@@ -890,9 +890,7 @@
 	 */
 	public void setBufferSize(int size)
 	{
-		if (isCommitted() || getContentCount()>0)
-			throw new IllegalStateException("Committed or content written");
-		_connection._generator.increaseContentBufferSize(size);
+		throw new UnsupportedOperationException();
 	}
 
 	/* ------------------------------------------------------------ */