diff --git a/pmml-evaluator-reporting-processor/pom.xml b/pmml-evaluator-reporting-processor/pom.xml index 84c5d154..73d91ab0 100644 --- a/pmml-evaluator-reporting-processor/pom.xml +++ b/pmml-evaluator-reporting-processor/pom.xml @@ -31,7 +31,7 @@ org.glassfish.jaxb codemodel - 3.0.2 + 4.0.5 diff --git a/pmml-evaluator-reporting-processor/src/main/java/org/jpmml/evaluator/reporting/processors/OperationProcessor.java b/pmml-evaluator-reporting-processor/src/main/java/org/jpmml/evaluator/reporting/processors/OperationProcessor.java index b11e20f8..702d4e7b 100644 --- a/pmml-evaluator-reporting-processor/src/main/java/org/jpmml/evaluator/reporting/processors/OperationProcessor.java +++ b/pmml-evaluator-reporting-processor/src/main/java/org/jpmml/evaluator/reporting/processors/OperationProcessor.java @@ -675,11 +675,7 @@ private JInvocation createReportInvocation(JDefinedClass clazz, JExpression sbVa JType valueClazz; - try { - valueClazz = codeModel.parseType("org.jpmml.evaluator.Value"); - } catch(ClassNotFoundException cnfe){ - throw new RuntimeException(cnfe); - } + valueClazz = codeModel.parseType("org.jpmml.evaluator.Value"); Matcher matcher = OperationProcessor.PATTERN.matcher(operation); @@ -793,11 +789,8 @@ private JType toType(JCodeModel codeModel, TypeMirror typeMirror){ name = name.substring(0, name.length() - "Value".length()) + "Value"; } - try { - return codeModel.parseType(name); - } catch(ClassNotFoundException cnfe){ - throw new RuntimeException(cnfe); - } + return codeModel.parseType(name); + } static