diff src/org/eclipse/jetty/io/AbstractBuffer.java @ 1019:f126d30e04a4

start replacing BufferCache with StringCache
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 31 Oct 2016 03:33:42 -0600
parents 2712133d5bce
children 6be43ef1eb96
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/AbstractBuffer.java	Mon Oct 24 05:37:24 2016 -0600
+++ b/src/org/eclipse/jetty/io/AbstractBuffer.java	Mon Oct 31 03:33:42 2016 -0600
@@ -360,6 +360,7 @@
 		return _view;
 	}
 
+	@Override
 	public int poke(int index, Buffer src)
 	{
 		_hash=0;
@@ -439,7 +440,7 @@
 	public int put(Buffer src)
 	{
 		int pi = putIndex();
-		int l=poke(pi, src);
+		int l = poke(pi, src);
 		setPutIndex(pi + l);
 		return l;
 	}
@@ -593,7 +594,6 @@
 		return buf.toString();
 	}
 
-	/* ------------------------------------------------------------ */
 	@Override
 	public String toString()
 	{
@@ -606,8 +606,8 @@
 		return new String(asArray(), 0, length());
 	}
 
-	/* ------------------------------------------------------------ */
-	public String toString(String charset)
+	@Override
+	public final String toString(String charset)
 	{
 		try
 		{
@@ -624,8 +624,8 @@
 		}
 	}
 
-	/* ------------------------------------------------------------ */
-	public String toString(Charset charset)
+	@Override
+	public final String toString(Charset charset)
 	{
 		try
 		{