diff src/org/eclipse/jetty/http/HttpParser.java @ 1061:c880589715c7

remove JBuffer.setGetIndex()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 08 Nov 2016 05:54:53 -0700
parents 013939bfc9e8
children 0157e92670f5
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();
 										}
 									}