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

remove Buffer.isVolatile()
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Nov 2016 01:10:09 -0600
parents 4e5e9e3c25b3
children b71ad168fe34
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/ByteArrayBuffer.java	Thu Nov 03 00:55:20 2016 -0600
+++ b/src/org/eclipse/jetty/io/ByteArrayBuffer.java	Thu Nov 03 01:10:09 2016 -0600
@@ -33,9 +33,9 @@
 	final static int MAX_WRITE=Integer.getInteger("org.eclipse.jetty.io.ByteArrayBuffer.MAX_WRITE",128*1024);
 	final protected byte[] _bytes;
 
-	protected ByteArrayBuffer(int size, int access, boolean isVolatile)
+	protected ByteArrayBuffer(int size, int access)
 	{
-		this(new byte[size],0,0,access, isVolatile);
+		this(new byte[size],0,0,access);
 	}
 	
 	public ByteArrayBuffer(byte[] bytes)
@@ -50,16 +50,7 @@
 
 	public ByteArrayBuffer(byte[] bytes, int index, int length, int access)
 	{
-		super(READWRITE, NON_VOLATILE);
-		_bytes = bytes;
-		setPutIndex(index + length);
-		setGetIndex(index);
-		_access = access;
-	}
-
-	private ByteArrayBuffer(byte[] bytes, int index, int length, int access, boolean isVolatile)
-	{
-		super(READWRITE, isVolatile);
+		super(READWRITE);
 		_bytes = bytes;
 		setPutIndex(index + length);
 		setGetIndex(index);
@@ -74,7 +65,7 @@
 
 	public ByteArrayBuffer(String value)
 	{
-		super(READWRITE,NON_VOLATILE);
+		super(READWRITE);
 		_bytes = StringUtil.getBytes(value);
 		setGetIndex(0);
 		setPutIndex(_bytes.length);