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:
Luc Maisonobe 2011-07-10 11:01:56 +00:00
parent cd6ab81dc8
commit a58a65a43f
1 changed files with 4 additions and 6 deletions

View File

@ -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;