public static Class<?> getRawType(final AnnotatedType annotatedType) {
final Type containerType = annotatedType.getType();
if (containerType instanceof Class) {
return (Class<?>) containerType;
} else if (containerType instanceof ParameterizedType) {
return (Class<?>) ((ParameterizedType) containerType).getRawType();
} else {
throw new ValidationException("Unknown type: " + containerType.getClass());
}
}
ReflectionUtils.java 文件源码
java
阅读 46
收藏 0
点赞 0
评论 0
项目:minijax
作者:
评论列表
文章目录