test_class.file: oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/StringUtilsTest.java
test_class.identifier: StringUtilsTest
test_case.body: @Test
      public void testBytesToHex() {
          assertEquals("0123", StringUtils.convertBytesToHex(new byte[] {(byte) 0x01, (byte) 0x23}));
          assertEquals("89bd", StringUtils.convertBytesToHex(new byte[] {(byte) 0x89, (byte) 0xbd}));
          assertEquals("face", StringUtils.convertBytesToHex(new byte[] {(byte) 0xfa, (byte) 0xce}));
          assertEquals("", StringUtils.convertBytesToHex(new byte[] {}));
      }
test_case.class_method_signature: StringUtilsTest.testBytesToHex()
test_case.full_signature: @Test public void testBytesToHex()
test_case.identifier: testBytesToHex
test_case.invocations: assertEquals convertBytesToHex assertEquals convertBytesToHex assertEquals convertBytesToHex assertEquals convertBytesToHex
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBytesToHex()
focal_class.declarator: LOG = LoggerFactory.getLogger(StringUtils.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(StringUtils.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: HEX = "0123456789abcdef".toCharArray()
focal_class.modifier: private static final
focal_class.original_string: private static final char[] HEX = "0123456789abcdef".toCharArray();
focal_class.type: char[]
focal_class.var_name: HEX
focal_class.file: oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/StringUtils.java
focal_class.identifier: StringUtils
focal_class.class_method_signature: StringUtils.StringUtils()
focal_class.full_signature: private  StringUtils()
focal_class.identifier: StringUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  StringUtils()
focal_class.class_method_signature: StringUtils.convertBytesToHex(@NotNull byte[] value)
focal_class.full_signature: @NotNull public static String convertBytesToHex(@NotNull byte[] value)
focal_class.identifier: convertBytesToHex
focal_class.modifiers: @NotNull public static
focal_class.parameters: (@NotNull byte[] value)
focal_class.return: String
focal_class.signature: String convertBytesToHex(@NotNull byte[] value)
focal_class.class_method_signature: StringUtils.convertHexToBytes(@NotNull String s)
focal_class.full_signature: @NotNull public static byte[] convertHexToBytes(@NotNull String s)
focal_class.identifier: convertHexToBytes
focal_class.modifiers: @NotNull public static
focal_class.parameters: (@NotNull String s)
focal_class.return: byte[]
focal_class.signature: byte[] convertHexToBytes(@NotNull String s)
focal_class.class_method_signature: StringUtils.getHexDigit(String s, int i)
focal_class.full_signature: private static int getHexDigit(String s, int i)
focal_class.identifier: getHexDigit
focal_class.modifiers: private static
focal_class.parameters: (String s, int i)
focal_class.return: int
focal_class.signature: int getHexDigit(String s, int i)
focal_class.class_method_signature: StringUtils.estimateMemoryUsage(String s)
focal_class.full_signature: public static int estimateMemoryUsage(String s)
focal_class.identifier: estimateMemoryUsage
focal_class.modifiers: public static
focal_class.parameters: (String s)
focal_class.return: int
focal_class.signature: int estimateMemoryUsage(String s)
focal_method.body: @NotNull
      public static String convertBytesToHex(@NotNull byte[] value) {
          checkNotNull(value);
          int len = value.length;
          char[] buff = new char[len + len];
          char[] hex = HEX;
          for (int i = 0; i < len; i++) {
              int c = value[i] & 0xff;
              buff[i + i] = hex[c >> 4];
              buff[i + i + 1] = hex[c & 0xf];
          }
          return new String(buff);
      }
focal_method.class_method_signature: StringUtils.convertBytesToHex(@NotNull byte[] value)
focal_method.full_signature: @NotNull public static String convertBytesToHex(@NotNull byte[] value)
focal_method.identifier: convertBytesToHex
focal_method.invocations: checkNotNull
focal_method.modifiers: @NotNull public static
focal_method.parameters: (@NotNull byte[] value)
focal_method.return: String
focal_method.signature: String convertBytesToHex(@NotNull byte[] value)