mirror of
https://github.com/apache/commons-math.git
synced 2025-03-04 15:39:17 +00:00
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
|
||||
*/
|
||||
public static void checkNotNaN(final double[] in)
|
||||
throws NotStrictlyPositiveException {
|
||||
throws NotANumberException {
|
||||
for(int i = 0; i < in.length; i++) {
|
||||
if (Double.isNaN(in[i])) {
|
||||
throw new NotANumberException();
|
||||
|
Loading…
x
Reference in New Issue
Block a user