changeset 1061:c880589715c7

remove JBuffer.setGetIndex()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 08 Nov 2016 05:54:53 -0700
parents 957f758dcffc
children 4a50422596b6
files src/org/eclipse/jetty/http/HttpParser.java src/org/eclipse/jetty/io/JBuffer.java
diffstat 2 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/HttpParser.java	Tue Nov 08 05:51:00 2016 -0700
+++ b/src/org/eclipse/jetty/http/HttpParser.java	Tue Nov 08 05:54:53 2016 -0700
@@ -107,9 +107,9 @@
 			_buffer.compact();
 		} else if( _mark > 0 ) {
 			int old = _buffer.getIndex();
-			_buffer.setGetIndex(_mark);
+			_buffer.position(_mark);
 			_buffer.compact();
-			_buffer.setGetIndex( old - _mark );
+			_buffer.position( old - _mark );
 			_mark = 0;
 		}
 	}
@@ -628,7 +628,7 @@
 										if (_cached!=null)
 										{
 											_length = _cached.length();
-											_buffer.setGetIndex(_mark+_length);
+											_buffer.position(_mark+_length);
 											length = _buffer.remaining();
 										}
 									}
--- a/src/org/eclipse/jetty/io/JBuffer.java	Tue Nov 08 05:51:00 2016 -0700
+++ b/src/org/eclipse/jetty/io/JBuffer.java	Tue Nov 08 05:54:53 2016 -0700
@@ -137,10 +137,6 @@
 		return bb.limit();
 	}
 
-	public void setGetIndex(int getIndex) {
-		bb.position(getIndex);
-	}
-
 	public void setPutIndex(int putIndex) {
 		bb.limit(putIndex);
 	}