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

Method getLong

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

Convert the buffer to a long, cache the value. Used for headers conversion. @return the long value

()

Source from the content-addressed store, hash-verified

668 * @return the long value
669 */
670 public long getLong() {
671 if (hasLongValue) {
672 return longValue;
673 }
674
675 if (type == T_BYTES) {
676 longValue = byteC.getLong();
677 } else {
678 longValue = Long.parseLong(toString());
679 }
680
681 hasLongValue = true;
682 return longValue;
683
684 }
685
686 // -------------------- Future may be different --------------------
687

Callers 2

getContentLengthLongMethod · 0.95
prepareRequestMethod · 0.95

Calls 2

toStringMethod · 0.95
parseLongMethod · 0.45

Tested by

no test coverage detected