test_class.file: dubbo-common/src/test/java/com/alibaba/dubbo/common/utils/ClassHelperTest.java
test_class.identifier: ClassHelperTest
test_case.body: @Test
      public void testResolvePrimitiveClassName() throws Exception {
          assertThat(resolvePrimitiveClassName("boolean") == boolean.class, is(true));
          assertThat(resolvePrimitiveClassName("byte") == byte.class, is(true));
          assertThat(resolvePrimitiveClassName("char") == char.class, is(true));
          assertThat(resolvePrimitiveClassName("double") == double.class, is(true));
          assertThat(resolvePrimitiveClassName("float") == float.class, is(true));
          assertThat(resolvePrimitiveClassName("int") == int.class, is(true));
          assertThat(resolvePrimitiveClassName("long") == long.class, is(true));
          assertThat(resolvePrimitiveClassName("short") == short.class, is(true));
          assertThat(resolvePrimitiveClassName("[Z") == boolean[].class, is(true));
          assertThat(resolvePrimitiveClassName("[B") == byte[].class, is(true));
          assertThat(resolvePrimitiveClassName("[C") == char[].class, is(true));
          assertThat(resolvePrimitiveClassName("[D") == double[].class, is(true));
          assertThat(resolvePrimitiveClassName("[F") == float[].class, is(true));
          assertThat(resolvePrimitiveClassName("[I") == int[].class, is(true));
          assertThat(resolvePrimitiveClassName("[J") == long[].class, is(true));
          assertThat(resolvePrimitiveClassName("[S") == short[].class, is(true));
      }
test_case.class_method_signature: ClassHelperTest.testResolvePrimitiveClassName()
test_case.full_signature: @Test public void testResolvePrimitiveClassName()
test_case.identifier: testResolvePrimitiveClassName
test_case.invocations: assertThat resolvePrimitiveClassName is assertThat resolvePrimitiveClassName is assertThat resolvePrimitiveClassName is assertThat resolvePrimitiveClassName is assertThat resolvePrimitiveClassName is assertThat resolvePrimitiveClassName is assertThat resolvePrimitiveClassName is assertThat resolvePrimitiveClassName is assertThat resolvePrimitiveClassName is assertThat resolvePrimitiveClassName is assertThat resolvePrimitiveClassName is assertThat resolvePrimitiveClassName is assertThat resolvePrimitiveClassName is assertThat resolvePrimitiveClassName is assertThat resolvePrimitiveClassName is assertThat resolvePrimitiveClassName is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testResolvePrimitiveClassName()
focal_class.declarator: ARRAY_SUFFIX = "[]"
focal_class.modifier: public static final
focal_class.original_string: public static final String ARRAY_SUFFIX = "[]";
focal_class.type: String
focal_class.var_name: ARRAY_SUFFIX
focal_class.declarator: INTERNAL_ARRAY_PREFIX = "[L"
focal_class.modifier: private static final
focal_class.original_string: private static final String INTERNAL_ARRAY_PREFIX = "[L";
focal_class.type: String
focal_class.var_name: INTERNAL_ARRAY_PREFIX
focal_class.declarator: primitiveTypeNameMap = new HashMap<String, Class<?>>(16)
focal_class.modifier: private static final
focal_class.original_string: private static final Map<String, Class<?>> primitiveTypeNameMap = new HashMap<String, Class<?>>(16);
focal_class.type: Map<String, Class<?>>
focal_class.var_name: primitiveTypeNameMap
focal_class.declarator: primitiveWrapperTypeMap = new HashMap<Class<?>, Class<?>>(8)
focal_class.modifier: private static final
focal_class.original_string: private static final Map<Class<?>, Class<?>> primitiveWrapperTypeMap = new HashMap<Class<?>, Class<?>>(8);
focal_class.type: Map<Class<?>, Class<?>>
focal_class.var_name: primitiveWrapperTypeMap
focal_class.file: dubbo-common/src/main/java/com/alibaba/dubbo/common/utils/ClassHelper.java
focal_class.identifier: ClassHelper
focal_class.class_method_signature: ClassHelper.forNameWithThreadContextClassLoader(String name)
focal_class.full_signature: public static Class<?> forNameWithThreadContextClassLoader(String name)
focal_class.identifier: forNameWithThreadContextClassLoader
focal_class.modifiers: public static
focal_class.parameters: (String name)
focal_class.return: Class<?>
focal_class.signature: Class<?> forNameWithThreadContextClassLoader(String name)
focal_class.class_method_signature: ClassHelper.forNameWithCallerClassLoader(String name, Class<?> caller)
focal_class.full_signature: public static Class<?> forNameWithCallerClassLoader(String name, Class<?> caller)
focal_class.identifier: forNameWithCallerClassLoader
focal_class.modifiers: public static
focal_class.parameters: (String name, Class<?> caller)
focal_class.return: Class<?>
focal_class.signature: Class<?> forNameWithCallerClassLoader(String name, Class<?> caller)
focal_class.class_method_signature: ClassHelper.getCallerClassLoader(Class<?> caller)
focal_class.full_signature: public static ClassLoader getCallerClassLoader(Class<?> caller)
focal_class.identifier: getCallerClassLoader
focal_class.modifiers: public static
focal_class.parameters: (Class<?> caller)
focal_class.return: ClassLoader
focal_class.signature: ClassLoader getCallerClassLoader(Class<?> caller)
focal_class.class_method_signature: ClassHelper.getClassLoader(Class<?> cls)
focal_class.full_signature: public static ClassLoader getClassLoader(Class<?> cls)
focal_class.identifier: getClassLoader
focal_class.modifiers: public static
focal_class.parameters: (Class<?> cls)
focal_class.return: ClassLoader
focal_class.signature: ClassLoader getClassLoader(Class<?> cls)
focal_class.class_method_signature: ClassHelper.getClassLoader()
focal_class.full_signature: public static ClassLoader getClassLoader()
focal_class.identifier: getClassLoader
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: ClassLoader
focal_class.signature: ClassLoader getClassLoader()
focal_class.class_method_signature: ClassHelper.forName(String name)
focal_class.full_signature: public static Class<?> forName(String name)
focal_class.identifier: forName
focal_class.modifiers: public static
focal_class.parameters: (String name)
focal_class.return: Class<?>
focal_class.signature: Class<?> forName(String name)
focal_class.class_method_signature: ClassHelper.forName(String name, ClassLoader classLoader)
focal_class.full_signature: public static Class<?> forName(String name, ClassLoader classLoader)
focal_class.identifier: forName
focal_class.modifiers: public static
focal_class.parameters: (String name, ClassLoader classLoader)
focal_class.return: Class<?>
focal_class.signature: Class<?> forName(String name, ClassLoader classLoader)
focal_class.class_method_signature: ClassHelper.resolvePrimitiveClassName(String name)
focal_class.full_signature: public static Class<?> resolvePrimitiveClassName(String name)
focal_class.identifier: resolvePrimitiveClassName
focal_class.modifiers: public static
focal_class.parameters: (String name)
focal_class.return: Class<?>
focal_class.signature: Class<?> resolvePrimitiveClassName(String name)
focal_class.class_method_signature: ClassHelper.toShortString(Object obj)
focal_class.full_signature: public static String toShortString(Object obj)
focal_class.identifier: toShortString
focal_class.modifiers: public static
focal_class.parameters: (Object obj)
focal_class.return: String
focal_class.signature: String toShortString(Object obj)
focal_method.body: public static Class<?> resolvePrimitiveClassName(String name) {
          Class<?> result = null;
          // Most class names will be quite long, considering that they
          // SHOULD sit in a package, so a length check is worthwhile.
          if (name != null && name.length() <= 8) {
              // Could be a primitive - likely.
              result = (Class<?>) primitiveTypeNameMap.get(name);
          }
          return result;
      }
focal_method.class_method_signature: ClassHelper.resolvePrimitiveClassName(String name)
focal_method.full_signature: public static Class<?> resolvePrimitiveClassName(String name)
focal_method.identifier: resolvePrimitiveClassName
focal_method.invocations: length get
focal_method.modifiers: public static
focal_method.parameters: (String name)
focal_method.return: Class<?>
focal_method.signature: Class<?> resolvePrimitiveClassName(String name)