@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());
}
}
XmlUnmarshaller.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:serialisation
作者:
评论列表
文章目录