MCPcopy Create free account
hub / github.com/apache/tomcat / hex

Method hex

java/org/apache/coyote/ajp/AjpMessage.java:427–433  ·  view source on GitHub ↗

Convert an integer to a two-character hex string. @param x the integer to convert @return the hex string

(int x)

Source from the content-addressed store, hash-verified

425 * @return the hex string
426 */
427 protected static String hex(int x) {
428 String h = Integer.toHexString(x);
429 if (h.length() == 1) {
430 h = "0" + h;
431 }
432 return h.substring(h.length() - 2);
433 }
434
435
436}

Callers 1

hexLineMethod · 0.95

Calls 2

toHexStringMethod · 0.80
lengthMethod · 0.80

Tested by

no test coverage detected