diff src/org/eclipse/jetty/io/ByteArrayBuffer.java @ 1038:b71ad168fe34

rename Buffer.length() to remaining()
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Nov 2016 22:16:11 -0600
parents 80cad9086593
children a7319f14ba1e
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/ByteArrayBuffer.java	Thu Nov 03 21:54:34 2016 -0600
+++ b/src/org/eclipse/jetty/io/ByteArrayBuffer.java	Thu Nov 03 22:16:11 2016 -0600
@@ -118,7 +118,7 @@
 		Buffer b = (Buffer) obj;
 		
 		// reject different lengths
-		if (b.length() != length()) 
+		if (b.remaining() != remaining()) 
 			return false;
 
 		// reject AbstractBuffer with different hash value
@@ -220,7 +220,7 @@
 			throw new IllegalArgumentException("index<0: " + index + "<0");
 		*/
 		
-		int length=src.length();
+		int length=src.remaining();
 		if (index + length > capacity())
 		{
 			length=capacity()-index;