comparison src/org/eclipse/jetty/io/AbstractBuffer.java @ 1020:6be43ef1eb96

HttpHeaderValues uses StringCache
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 31 Oct 2016 22:24:41 -0600
parents f126d30e04a4
children 6647dbc8be71
comparison
equal deleted inserted replaced
1019:f126d30e04a4 1020:6be43ef1eb96
595 } 595 }
596 596
597 @Override 597 @Override
598 public String toString() 598 public String toString()
599 { 599 {
600 /*
600 if (isImmutable()) 601 if (isImmutable())
601 { 602 {
602 if (_string == null) 603 if (_string == null)
603 _string = new String(asArray(), 0, length()); 604 _string = new String(asArray(), 0, length());
604 return _string; 605 return _string;
605 } 606 }
606 return new String(asArray(), 0, length()); 607 return new String(asArray(), 0, length());
608 */
609 return toString("ISO-8859-1");
607 } 610 }
608 611
609 @Override 612 @Override
610 public final String toString(String charset) 613 public final String toString(String charset)
611 { 614 {