Author: markt Date: Sun Jun 16 23:32:31 2013 New Revision: 1493615 URL: http://svn.apache.org/r1493615 Log: Fix FindBugs warning - better debug message
Modified: tomcat/trunk/java/org/apache/tomcat/util/codec/binary/BaseNCodec.java Modified: tomcat/trunk/java/org/apache/tomcat/util/codec/binary/BaseNCodec.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/codec/binary/BaseNCodec.java?rev=1493615&r1=1493614&r2=1493615&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/codec/binary/BaseNCodec.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/codec/binary/BaseNCodec.java Sun Jun 16 23:32:31 2013 @@ -16,6 +16,7 @@ */ package org.apache.tomcat.util.codec.binary; +import org.apache.tomcat.util.buf.HexUtils; import org.apache.tomcat.util.codec.BinaryDecoder; import org.apache.tomcat.util.codec.BinaryEncoder; import org.apache.tomcat.util.codec.DecoderException; @@ -97,8 +98,10 @@ public abstract class BaseNCodec impleme @SuppressWarnings("boxing") // OK to ignore boxing here @Override public String toString() { - return String.format("%s[buffer=%s, currentLinePos=%s, eof=%s, ibitWorkArea=%s, lbitWorkArea=%s, " + - "modulus=%s, pos=%s, readPos=%s]", this.getClass().getSimpleName(), buffer, currentLinePos, eof, + return String.format("%s[buffer=%s, currentLinePos=%s, eof=%s, " + + "ibitWorkArea=%s, lbitWorkArea=%s, modulus=%s, pos=%s, " + + "readPos=%s]", this.getClass().getSimpleName(), + HexUtils.toHexString(buffer), currentLinePos, eof, ibitWorkArea, lbitWorkArea, modulus, pos, readPos); } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org