private static String _typeNormalizedDesc(final Class<?> type) {
String dataTypeDesc = null;
if (CollectionUtils.isMap(type)) {
//@SuppressWarnings("unchecked")
//Class<? extends Map<?,?>> mapType = (Class<? extends Map<?,?>>)type;
// Map:(java.lang.Object,java.lang.Object)
dataTypeDesc = "Map:" + type.getName() + "(" + Object.class.getCanonicalName() + "," + Object.class.getCanonicalName() + ")";
} else if (CollectionUtils.isCollection(type)) {
//@SuppressWarnings("unchecked")
//Class<? extends Collection<?>> colType = (Class<? extends Collection<?>>)type;
dataTypeDesc = "Collection:" + type.getName() + "(" + Object.class.getCanonicalName() + ")";
} else if (type.isEnum() || type.getAnnotation(XmlEnum.class) != null) {
dataTypeDesc = "Enum(" + type.getName() + ")";
} else {
dataTypeDesc = type.getName();
}
return dataTypeDesc;
}
SimpleMarshallerMappingsFromAnnotationsLoader.java 文件源码
java
阅读 36
收藏 0
点赞 0
评论 0
项目:r01fb
作者:
评论列表
文章目录