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 testEstimateMemoryUsage() {
          final Map<String, Integer> testStrings = Maps.newHashMap();
          testStrings.put(null, 0);
          testStrings.put("", 48);
          testStrings.put("a", 50);
          testStrings.put("short string", 72);
          testStrings.put("a much longer string than the one named 'short string'", 156);
          for (final Map.Entry<String, Integer> e : testStrings.entrySet()) {
              assertEquals(e.getValue().intValue(), StringUtils.estimateMemoryUsage(e.getKey()));
          }
      }
test_case.class_method_signature: StringUtilsTest.testEstimateMemoryUsage()
test_case.full_signature: @Test public void testEstimateMemoryUsage()
test_case.identifier: testEstimateMemoryUsage
test_case.invocations: newHashMap put put put put put entrySet assertEquals intValue getValue estimateMemoryUsage getKey
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEstimateMemoryUsage()
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: public static int estimateMemoryUsage(String s) {
          long size = s == null ? 0 : 48 + (long)s.length() * 2;
          if (size > Integer.MAX_VALUE) {
              LOG.debug("Estimated memory footprint larger than Integer.MAX_VALUE: {}.", size);
              size = Integer.MAX_VALUE;
          }
          return (int) size;
      }
focal_method.class_method_signature: StringUtils.estimateMemoryUsage(String s)
focal_method.full_signature: public static int estimateMemoryUsage(String s)
focal_method.identifier: estimateMemoryUsage
focal_method.invocations: length debug
focal_method.modifiers: public static
focal_method.parameters: (String s)
focal_method.return: int
focal_method.signature: int estimateMemoryUsage(String s)