use checkNotNull
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1144821 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cd6ab81dc8
commit
a58a65a43f
|
@ -17,11 +17,11 @@
|
|||
|
||||
package org.apache.commons.math.analysis.solvers;
|
||||
|
||||
import org.apache.commons.math.util.Incrementor;
|
||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||
import org.apache.commons.math.exception.MaxCountExceededException;
|
||||
import org.apache.commons.math.exception.TooManyEvaluationsException;
|
||||
import org.apache.commons.math.exception.NullArgumentException;
|
||||
import org.apache.commons.math.analysis.UnivariateRealFunction;
|
||||
import org.apache.commons.math.util.Incrementor;
|
||||
import org.apache.commons.math.util.MathUtils;
|
||||
|
||||
/**
|
||||
* Provide a default implementation for several functions useful to generic
|
||||
|
@ -168,9 +168,7 @@ public abstract class BaseAbstractUnivariateRealSolver<FUNC extends UnivariateRe
|
|||
double min, double max,
|
||||
double startValue) {
|
||||
// Checks.
|
||||
if (f == null) {
|
||||
throw new NullArgumentException();
|
||||
}
|
||||
MathUtils.checkNotNull(f);
|
||||
|
||||
// Reset.
|
||||
searchMin = min;
|
||||
|
|
Loading…
Reference in New Issue