Advertize correct exception.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1605775 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2014-06-26 13:03:57 +00:00
parent a4118e288f
commit 61b2d1f34c
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ public class MathArrays {
* @since 3.4 * @since 3.4
*/ */
public static void checkNotNaN(final double[] in) public static void checkNotNaN(final double[] in)
throws NotStrictlyPositiveException { throws NotANumberException {
for(int i = 0; i < in.length; i++) { for(int i = 0; i < in.length; i++) {
if (Double.isNaN(in[i])) { if (Double.isNaN(in[i])) {
throw new NotANumberException(); throw new NotANumberException();