diff src/org/eclipse/jetty/io/BufferUtil.java @ 1055:e6ca3cb52837

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 08 Nov 2016 01:08:20 -0700
parents 87275900646e
children 7d872cc72ec2
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/BufferUtil.java	Tue Nov 08 01:03:02 2016 -0700
+++ b/src/org/eclipse/jetty/io/BufferUtil.java	Tue Nov 08 01:08:20 2016 -0700
@@ -70,7 +70,7 @@
 
 		if (started)
 			return minus ? (-val) : val;
-		throw new NumberFormatException(buffer.toString());
+		throw new NumberFormatException(getString(buffer.duplicate()));
 	}
 	
 	/**