diff src/org/eclipse/jetty/io/View.java @ 1030:80cad9086593

remove Buffer.isVolatile()
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Nov 2016 01:10:09 -0600
parents 4e5e9e3c25b3
children 921c25a05eaa
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/View.java	Thu Nov 03 00:55:20 2016 -0600
+++ b/src/org/eclipse/jetty/io/View.java	Thu Nov 03 01:10:09 2016 -0600
@@ -38,7 +38,7 @@
 	 */
 	public View(Buffer buffer, int mark, int get, int put,int access)
 	{
-		super(READWRITE,!buffer.isImmutable());
+		super(READWRITE);
 		_buffer=buffer.buffer();
 		setPutIndex(put);
 		setGetIndex(get);
@@ -48,7 +48,7 @@
 	
 	public View(Buffer buffer)
 	{
-		super(READWRITE,!buffer.isImmutable());
+		super(READWRITE);
 		_buffer=buffer.buffer();
 		setPutIndex(buffer.putIndex());
 		setGetIndex(buffer.getIndex());
@@ -58,7 +58,7 @@
 
 	public View()
 	{
-		super(READWRITE,true);
+		super(READWRITE);
 	}
 	
 	/**
@@ -126,12 +126,6 @@
 	}
 
 	@Override
-	public boolean isVolatile()
-	{
-		return true;
-	}
-
-	@Override
 	public byte peek(int index)
 	{
 		return _buffer.peek(index);