diff src/org/eclipse/jetty/io/JBuffer.java @ 1065:158d1e6ac17f

fix JBuffer.compact()
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 09 Nov 2016 04:36:05 -0700
parents a0abb16cf6e7
children bbbda7c6e8ec
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/JBuffer.java	Wed Nov 09 03:09:37 2016 -0700
+++ b/src/org/eclipse/jetty/io/JBuffer.java	Wed Nov 09 04:36:05 2016 -0700
@@ -68,10 +68,7 @@
 	}
 
 	public void compact() {
-		int n = bb.remaining();
 		bb.compact();
-		bb.position(0);
-		bb.limit(n);
 	}
 
 	public int capacity() {
@@ -84,7 +81,7 @@
 		return bb;
 	}
 
-	public void clear() {
+	public void clearJ() {
 		bb.position(0);
 		bb.limit(0);
 	}