Skip to content

Commit

Permalink
Improved the structuring of Java code
Browse files Browse the repository at this point in the history
  • Loading branch information
vruusmann committed Nov 29, 2022
1 parent 181f5c7 commit 792fd5d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.dmg.pmml.NormContinuous;
import org.dmg.pmml.OpType;
import org.dmg.pmml.OutlierTreatmentMethod;
import org.dmg.pmml.PMML;
import org.jpmml.evaluator.FieldValue;
import org.jpmml.evaluator.FieldValueUtil;
import org.jpmml.model.InvalidElementException;
Expand Down Expand Up @@ -160,7 +161,7 @@ public void translateExpression(TranslationContext context){
}

private JDefinedClass ensureNormContinuousFuncInterface(TranslationContext context){
JDefinedClass owner = context.getOwner();
JDefinedClass owner = context.getOwner(PMML.class);

JDefinedClass definedClazz = JCodeModelUtil.getNestedClass(owner, "NormContinuousFunction");
if(definedClazz != null){
Expand All @@ -185,7 +186,7 @@ private JDefinedClass ensureNormContinuousFuncInterface(TranslationContext conte
private JMethod ensureCreateNormContinuousFuncMethod(JDefinedClass normContinuousFuncInterface, TranslationContext context){
JCodeModel codeModel = context.getCodeModel();

JDefinedClass owner = context.getOwner();
JDefinedClass owner = context.getOwner(PMML.class);

JType doubleType = context._ref(double.class);

Expand Down

0 comments on commit 792fd5d

Please sign in to comment.