XmlUnmarshaller.java 文件源码

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

项目:serialisation 作者:
@SuppressWarnings("unchecked")
private <T> void checkType(Class<T> typeToUnmarshall) throws InvalidTargetObjectTypeException {
    try {
        U test = (U) createInstance(typeToUnmarshall);
        test.getClass();
    } catch (Exception e) {
        LOGGER.error("le type attendu n'est pas celui du XML ou n'est pas instanciable", e);
        throw new InvalidTargetObjectTypeException(e, "not instanciable from " + typeToUnmarshall.getName());
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号