MCPcopy Index your code
hub / github.com/apache/tomcat / toString

Method toString

java/org/apache/tomcat/util/buf/MessageBytes.java:190–206  ·  view source on GitHub ↗

Compute the string value. @return the string

()

Source from the content-addressed store, hash-verified

188 * @return the string
189 */
190 @Override
191 public String toString() {
192 switch (type) {
193 case T_NULL:
194 case T_STR:
195 // No conversion required
196 break;
197 case T_BYTES:
198 strValue = byteC.toString();
199 break;
200 case T_CHARS:
201 strValue = charC.toString();
202 break;
203 }
204
205 return strValue;
206 }
207
208
209 /**

Callers 15

testToStringFromNullMethod · 0.95
doTestNormalizeMethod · 0.95
parseCookieHeaderMethod · 0.95
toCharsMethod · 0.95
getLengthMethod · 0.95
indexOfMethod · 0.95
indexOfIgnoreCaseMethod · 0.95
getLongMethod · 0.95
useCompressionMethod · 0.95
prepareRequestMethod · 0.95
prepareExpectationMethod · 0.95

Calls 1

toStringMethod · 0.65

Tested by 3

testToStringFromNullMethod · 0.76
doTestNormalizeMethod · 0.76