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:
parent
a4118e288f
commit
61b2d1f34c
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue