private static MethodSerializer getMethodSerializer()

in hessian-lite/src/main/java/com/alibaba/com/caucho/hessian/io/AnnotationSerializer.java [80:102]


    private static MethodSerializer getMethodSerializer(Class type) {
        if (int.class.equals(type)
                || byte.class.equals(type)
                || short.class.equals(type)
                || int.class.equals(type)) {
            return IntMethodSerializer.SER;
        } else if (long.class.equals(type)) {
            return LongMethodSerializer.SER;
        } else if (double.class.equals(type) ||
                float.class.equals(type)) {
            return DoubleMethodSerializer.SER;
        } else if (boolean.class.equals(type)) {
            return BooleanMethodSerializer.SER;
        } else if (String.class.equals(type)) {
            return StringMethodSerializer.SER;
        } else if (java.util.Date.class.equals(type)
                || java.sql.Date.class.equals(type)
                || java.sql.Timestamp.class.equals(type)
                || java.sql.Time.class.equals(type)) {
            return DateMethodSerializer.SER;
        } else
            return MethodSerializer.SER;
    }