test_class.file: dubbo-common/src/test/java/org/apache/dubbo/common/beanutil/JavaBeanSerializeUtilTest.java
test_class.identifier: JavaBeanSerializeUtilTest
test_case.body: @Test
      public void testConstructorArg() {
          Assertions.assertFalse((boolean) JavaBeanSerializeUtil.getConstructorArg(boolean.class));
          Assertions.assertFalse((boolean) JavaBeanSerializeUtil.getConstructorArg(Boolean.class));
          Assertions.assertEquals((byte) 0, JavaBeanSerializeUtil.getConstructorArg(byte.class));
          Assertions.assertEquals((byte) 0, JavaBeanSerializeUtil.getConstructorArg(Byte.class));
          Assertions.assertEquals((short) 0, JavaBeanSerializeUtil.getConstructorArg(short.class));
          Assertions.assertEquals((short) 0, JavaBeanSerializeUtil.getConstructorArg(Short.class));
          Assertions.assertEquals(0, JavaBeanSerializeUtil.getConstructorArg(int.class));
          Assertions.assertEquals(0, JavaBeanSerializeUtil.getConstructorArg(Integer.class));
          Assertions.assertEquals((long) 0, JavaBeanSerializeUtil.getConstructorArg(long.class));
          Assertions.assertEquals((long) 0, JavaBeanSerializeUtil.getConstructorArg(Long.class));
          Assertions.assertEquals((float) 0, JavaBeanSerializeUtil.getConstructorArg(float.class));
          Assertions.assertEquals((float) 0, JavaBeanSerializeUtil.getConstructorArg(Float.class));
          Assertions.assertEquals((double) 0, JavaBeanSerializeUtil.getConstructorArg(double.class));
          Assertions.assertEquals((double) 0, JavaBeanSerializeUtil.getConstructorArg(Double.class));
          Assertions.assertEquals((char) 0, JavaBeanSerializeUtil.getConstructorArg(char.class));
          Assertions.assertEquals(new Character((char) 0), JavaBeanSerializeUtil.getConstructorArg(Character.class));
          Assertions.assertNull(JavaBeanSerializeUtil.getConstructorArg(JavaBeanSerializeUtil.class));
      }
test_case.class_method_signature: JavaBeanSerializeUtilTest.testConstructorArg()
test_case.full_signature: @Test public void testConstructorArg()
test_case.identifier: testConstructorArg
test_case.invocations: assertFalse getConstructorArg assertFalse getConstructorArg assertEquals getConstructorArg assertEquals getConstructorArg assertEquals getConstructorArg assertEquals getConstructorArg assertEquals getConstructorArg assertEquals getConstructorArg assertEquals getConstructorArg assertEquals getConstructorArg assertEquals getConstructorArg assertEquals getConstructorArg assertEquals getConstructorArg assertEquals getConstructorArg assertEquals getConstructorArg assertEquals getConstructorArg assertNull getConstructorArg
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConstructorArg()
focal_class.declarator: logger = LoggerFactory.getLogger(JavaBeanSerializeUtil.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(JavaBeanSerializeUtil.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: TYPES = new HashMap<String, Class<?>>()
focal_class.modifier: private static final
focal_class.original_string: private static final Map<String, Class<?>> TYPES = new HashMap<String, Class<?>>();
focal_class.type: Map<String, Class<?>>
focal_class.var_name: TYPES
focal_class.declarator: ARRAY_PREFIX = "["
focal_class.modifier: private static final
focal_class.original_string: private static final String ARRAY_PREFIX = "[";
focal_class.type: String
focal_class.var_name: ARRAY_PREFIX
focal_class.declarator: REFERENCE_TYPE_PREFIX = "L"
focal_class.modifier: private static final
focal_class.original_string: private static final String REFERENCE_TYPE_PREFIX = "L";
focal_class.type: String
focal_class.var_name: REFERENCE_TYPE_PREFIX
focal_class.declarator: REFERENCE_TYPE_SUFFIX = ";"
focal_class.modifier: private static final
focal_class.original_string: private static final String REFERENCE_TYPE_SUFFIX = ";";
focal_class.type: String
focal_class.var_name: REFERENCE_TYPE_SUFFIX
focal_class.file: dubbo-common/src/main/java/org/apache/dubbo/common/beanutil/JavaBeanSerializeUtil.java
focal_class.identifier: JavaBeanSerializeUtil
focal_class.class_method_signature: JavaBeanSerializeUtil.JavaBeanSerializeUtil()
focal_class.full_signature: private  JavaBeanSerializeUtil()
focal_class.identifier: JavaBeanSerializeUtil
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  JavaBeanSerializeUtil()
focal_class.class_method_signature: JavaBeanSerializeUtil.serialize(Object obj)
focal_class.full_signature: public static JavaBeanDescriptor serialize(Object obj)
focal_class.identifier: serialize
focal_class.modifiers: public static
focal_class.parameters: (Object obj)
focal_class.return: JavaBeanDescriptor
focal_class.signature: JavaBeanDescriptor serialize(Object obj)
focal_class.class_method_signature: JavaBeanSerializeUtil.serialize(Object obj, JavaBeanAccessor accessor)
focal_class.full_signature: public static JavaBeanDescriptor serialize(Object obj, JavaBeanAccessor accessor)
focal_class.identifier: serialize
focal_class.modifiers: public static
focal_class.parameters: (Object obj, JavaBeanAccessor accessor)
focal_class.return: JavaBeanDescriptor
focal_class.signature: JavaBeanDescriptor serialize(Object obj, JavaBeanAccessor accessor)
focal_class.class_method_signature: JavaBeanSerializeUtil.createDescriptorForSerialize(Class<?> cl)
focal_class.full_signature: private static JavaBeanDescriptor createDescriptorForSerialize(Class<?> cl)
focal_class.identifier: createDescriptorForSerialize
focal_class.modifiers: private static
focal_class.parameters: (Class<?> cl)
focal_class.return: JavaBeanDescriptor
focal_class.signature: JavaBeanDescriptor createDescriptorForSerialize(Class<?> cl)
focal_class.class_method_signature: JavaBeanSerializeUtil.createDescriptorIfAbsent(Object obj, JavaBeanAccessor accessor,
                                                                 IdentityHashMap<Object, JavaBeanDescriptor> cache)
focal_class.full_signature: private static JavaBeanDescriptor createDescriptorIfAbsent(Object obj, JavaBeanAccessor accessor,
                                                                 IdentityHashMap<Object, JavaBeanDescriptor> cache)
focal_class.identifier: createDescriptorIfAbsent
focal_class.modifiers: private static
focal_class.parameters: (Object obj, JavaBeanAccessor accessor,
                                                                 IdentityHashMap<Object, JavaBeanDescriptor> cache)
focal_class.return: JavaBeanDescriptor
focal_class.signature: JavaBeanDescriptor createDescriptorIfAbsent(Object obj, JavaBeanAccessor accessor,
                                                                 IdentityHashMap<Object, JavaBeanDescriptor> cache)
focal_class.class_method_signature: JavaBeanSerializeUtil.serializeInternal(JavaBeanDescriptor descriptor, Object obj, JavaBeanAccessor accessor,
                                            IdentityHashMap<Object, JavaBeanDescriptor> cache)
focal_class.full_signature: private static void serializeInternal(JavaBeanDescriptor descriptor, Object obj, JavaBeanAccessor accessor,
                                            IdentityHashMap<Object, JavaBeanDescriptor> cache)
focal_class.identifier: serializeInternal
focal_class.modifiers: private static
focal_class.parameters: (JavaBeanDescriptor descriptor, Object obj, JavaBeanAccessor accessor,
                                            IdentityHashMap<Object, JavaBeanDescriptor> cache)
focal_class.return: void
focal_class.signature: void serializeInternal(JavaBeanDescriptor descriptor, Object obj, JavaBeanAccessor accessor,
                                            IdentityHashMap<Object, JavaBeanDescriptor> cache)
focal_class.class_method_signature: JavaBeanSerializeUtil.deserialize(JavaBeanDescriptor beanDescriptor)
focal_class.full_signature: public static Object deserialize(JavaBeanDescriptor beanDescriptor)
focal_class.identifier: deserialize
focal_class.modifiers: public static
focal_class.parameters: (JavaBeanDescriptor beanDescriptor)
focal_class.return: Object
focal_class.signature: Object deserialize(JavaBeanDescriptor beanDescriptor)
focal_class.class_method_signature: JavaBeanSerializeUtil.deserialize(JavaBeanDescriptor beanDescriptor, ClassLoader loader)
focal_class.full_signature: public static Object deserialize(JavaBeanDescriptor beanDescriptor, ClassLoader loader)
focal_class.identifier: deserialize
focal_class.modifiers: public static
focal_class.parameters: (JavaBeanDescriptor beanDescriptor, ClassLoader loader)
focal_class.return: Object
focal_class.signature: Object deserialize(JavaBeanDescriptor beanDescriptor, ClassLoader loader)
focal_class.class_method_signature: JavaBeanSerializeUtil.deserializeInternal(Object result, JavaBeanDescriptor beanDescriptor, ClassLoader loader,
                                              IdentityHashMap<JavaBeanDescriptor, Object> cache)
focal_class.full_signature: private static void deserializeInternal(Object result, JavaBeanDescriptor beanDescriptor, ClassLoader loader,
                                              IdentityHashMap<JavaBeanDescriptor, Object> cache)
focal_class.identifier: deserializeInternal
focal_class.modifiers: private static
focal_class.parameters: (Object result, JavaBeanDescriptor beanDescriptor, ClassLoader loader,
                                              IdentityHashMap<JavaBeanDescriptor, Object> cache)
focal_class.return: void
focal_class.signature: void deserializeInternal(Object result, JavaBeanDescriptor beanDescriptor, ClassLoader loader,
                                              IdentityHashMap<JavaBeanDescriptor, Object> cache)
focal_class.class_method_signature: JavaBeanSerializeUtil.getSetterMethod(Class<?> cls, String property, Class<?> valueCls)
focal_class.full_signature: private static Method getSetterMethod(Class<?> cls, String property, Class<?> valueCls)
focal_class.identifier: getSetterMethod
focal_class.modifiers: private static
focal_class.parameters: (Class<?> cls, String property, Class<?> valueCls)
focal_class.return: Method
focal_class.signature: Method getSetterMethod(Class<?> cls, String property, Class<?> valueCls)
focal_class.class_method_signature: JavaBeanSerializeUtil.instantiate(Class<?> cl)
focal_class.full_signature: private static Object instantiate(Class<?> cl)
focal_class.identifier: instantiate
focal_class.modifiers: private static
focal_class.parameters: (Class<?> cl)
focal_class.return: Object
focal_class.signature: Object instantiate(Class<?> cl)
focal_class.class_method_signature: JavaBeanSerializeUtil.getConstructorArg(Class<?> cl)
focal_class.full_signature: public static Object getConstructorArg(Class<?> cl)
focal_class.identifier: getConstructorArg
focal_class.modifiers: public static
focal_class.parameters: (Class<?> cl)
focal_class.return: Object
focal_class.signature: Object getConstructorArg(Class<?> cl)
focal_class.class_method_signature: JavaBeanSerializeUtil.instantiateForDeserialize(JavaBeanDescriptor beanDescriptor, ClassLoader loader,
                                                      IdentityHashMap<JavaBeanDescriptor, Object> cache)
focal_class.full_signature: private static Object instantiateForDeserialize(JavaBeanDescriptor beanDescriptor, ClassLoader loader,
                                                      IdentityHashMap<JavaBeanDescriptor, Object> cache)
focal_class.identifier: instantiateForDeserialize
focal_class.modifiers: private static
focal_class.parameters: (JavaBeanDescriptor beanDescriptor, ClassLoader loader,
                                                      IdentityHashMap<JavaBeanDescriptor, Object> cache)
focal_class.return: Object
focal_class.signature: Object instantiateForDeserialize(JavaBeanDescriptor beanDescriptor, ClassLoader loader,
                                                      IdentityHashMap<JavaBeanDescriptor, Object> cache)
focal_class.class_method_signature: JavaBeanSerializeUtil.name2Class(ClassLoader loader, String name)
focal_class.full_signature: public static Class<?> name2Class(ClassLoader loader, String name)
focal_class.identifier: name2Class
focal_class.modifiers: public static
focal_class.parameters: (ClassLoader loader, String name)
focal_class.return: Class<?>
focal_class.signature: Class<?> name2Class(ClassLoader loader, String name)
focal_class.class_method_signature: JavaBeanSerializeUtil.isArray(String type)
focal_class.full_signature: private static boolean isArray(String type)
focal_class.identifier: isArray
focal_class.modifiers: private static
focal_class.parameters: (String type)
focal_class.return: boolean
focal_class.signature: boolean isArray(String type)
focal_class.class_method_signature: JavaBeanSerializeUtil.isReferenceType(String type)
focal_class.full_signature: private static boolean isReferenceType(String type)
focal_class.identifier: isReferenceType
focal_class.modifiers: private static
focal_class.parameters: (String type)
focal_class.return: boolean
focal_class.signature: boolean isReferenceType(String type)
focal_class.class_method_signature: JavaBeanSerializeUtil.getEnumValueOfMethod(Class cl)
focal_class.full_signature: private static Method getEnumValueOfMethod(Class cl)
focal_class.identifier: getEnumValueOfMethod
focal_class.modifiers: private static
focal_class.parameters: (Class cl)
focal_class.return: Method
focal_class.signature: Method getEnumValueOfMethod(Class cl)
focal_method.body: public static Object getConstructorArg(Class<?> cl) {
          if (boolean.class.equals(cl) || Boolean.class.equals(cl)) {
              return Boolean.FALSE;
          }
  
          if (byte.class.equals(cl) || Byte.class.equals(cl)) {
              return (byte) 0;
          }
  
          if (short.class.equals(cl) || Short.class.equals(cl)) {
              return (short) 0;
          }
  
          if (int.class.equals(cl) || Integer.class.equals(cl)) {
              return 0;
          }
  
          if (long.class.equals(cl) || Long.class.equals(cl)) {
              return 0L;
          }
  
          if (float.class.equals(cl) || Float.class.equals(cl)) {
              return (float) 0;
          }
  
          if (double.class.equals(cl) || Double.class.equals(cl)) {
              return (double) 0;
          }
  
          if (char.class.equals(cl) || Character.class.equals(cl)) {
              return (char) 0;
          }
          return null;
      }
focal_method.class_method_signature: JavaBeanSerializeUtil.getConstructorArg(Class<?> cl)
focal_method.full_signature: public static Object getConstructorArg(Class<?> cl)
focal_method.identifier: getConstructorArg
focal_method.invocations: equals equals equals equals equals equals equals equals equals equals equals equals equals equals equals equals
focal_method.modifiers: public static
focal_method.parameters: (Class<?> cl)
focal_method.return: Object
focal_method.signature: Object getConstructorArg(Class<?> cl)