ReflectionUtils.java 文件源码

java
阅读 46 收藏 0 点赞 0 评论 0

项目:minijax 作者:
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());
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号