remm 2004/10/18 16:19:36 Modified: util/java/org/apache/tomcat/util/buf CharChunk.java Log: - Fix CharChunk.toString, and remove dead debug. Revision Changes Path 1.17 +6 -4 jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/buf/CharChunk.java Index: CharChunk.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/buf/CharChunk.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- CharChunk.java 18 Oct 2004 23:16:36 -0000 1.16 +++ CharChunk.java 18 Oct 2004 23:19:36 -0000 1.17 @@ -489,14 +489,16 @@ // -------------------- Conversion and getters -------------------- public String toString() { + if (null == buff) { + return null; + } else if (end-start == 0) { + return ""; + } return StringCache.toString(this); } public String toStringInternal() { - if( buff==null ) return null; - //System.out.println("CC toString: " + new String( buff, start, end-start)); - //Thread.dumpStack(); - return new String( buff, start, end-start); + return new String(buff, start, end-start); } public int getInt()
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]