Skip to content

Commit

Permalink
Employed JDK utility methods
Browse files Browse the repository at this point in the history
  • Loading branch information
vruusmann committed Mar 22, 2019
1 parent 2931027 commit 1749e8d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main/java/org/jpmml/h2o/Converter.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.jpmml.h2o;

import java.lang.reflect.Field;
import java.util.Objects;

import hex.genmodel.MojoModel;
import org.dmg.pmml.DataField;
Expand Down Expand Up @@ -85,12 +86,7 @@ public M getModel(){
}

private void setModel(M model){

if(model == null){
throw new IllegalArgumentException();
}

this.model = model;
this.model = Objects.requireNonNull(model);
}

static
Expand Down

0 comments on commit 1749e8d

Please sign in to comment.