commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <billwbar...@verizon.net>
Subject Re: svn commit: r1030464 [1/3] - in /commons/proper/math/trunk/src: main/java/org/apache/commons/math/ main/java/org/apache/commons/math/analysis/ main/java/org/apache/commons/math/analysis/integration/ main/java/org/apache/commons/math/analysis/interpolat
Date Thu, 04 Nov 2010 01:10:59 GMT


--------------------------------------------------
From: <erans@apache.org>
Sent: Wednesday, November 03, 2010 6:46 AM
To: <commits@commons.apache.org>
Subject: svn commit: r1030464 [1/3] - in /commons/proper/math/trunk/src: 
main/java/org/apache/commons/math/ 
main/java/org/apache/commons/math/analysis/ 
main/java/org/apache/commons/math/analysis/integration/ 
main/java/org/apache/commons/math/analysis/interpolat...

> Author: erans
> Date: Wed Nov  3 13:46:04 2010
> New Revision: 1030464
>
> URL: http://svn.apache.org/viewvc?rev=1030464&view=rev
> Log:
> MATH-195
> Created an unchecked "FunctionEvaluationException" in package "exception".
> Removed "throws" clause from interface "UnivariateRealFunction".
> "PolynomialFunctionLagrangeForm": Added early check on the interpolating
> array having distinct points; removed redundant test in methods "evaluate"
> and "computeCoefficients".
> "DividedDifferenceInerpolator": Removed redundant check.
> "Mathutils": Added method "sortInPlace". Removed (most) references to the
> deprecated "MathRuntimeException" class.
> "optimization.direct": Removed deprecated classes.
> Javadoc clean up.
>
>
<snip />
>  * @version $Revision$ $Date$
>  */
> public interface UnivariateRealFunction {
> -
>     /**
> -     * Compute the value for the function.
> -     * @param x the point for which the function value should be computed
> -     * @return the value
> -     * @throws FunctionEvaluationException if the function evaluation 
> fails
> +     * Compute the value of the function.
> +     *
> +     * @param x Point at which the function value should be computed.
> +     * @return the value.
>      */
> -    double value(double x) throws FunctionEvaluationException;
> -
> +    double value(double x);
> }
>

IMHO we still need the @throws line in the javadoc.  Otherwise end users are 
going to get a nasty surprise when they get an unchecked exception thrown. 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message