mirror of
https://github.com/apache/commons-math.git
synced 2025-02-11 20:46:03 +00:00
Unnecessary "return".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1055864 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fc20a308d7
commit
2399c99f9e
@ -1762,7 +1762,7 @@ public final class MathUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks that the given array is sorted.
|
* Check that the given array is sorted.
|
||||||
*
|
*
|
||||||
* @param val Values.
|
* @param val Values.
|
||||||
* @param dir Ordering direction.
|
* @param dir Ordering direction.
|
||||||
@ -1818,29 +1818,26 @@ public final class MathUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks that the given array is sorted.
|
* Check that the given array is sorted.
|
||||||
*
|
*
|
||||||
* @param val Values.
|
* @param val Values.
|
||||||
* @param dir Ordering direction.
|
* @param dir Ordering direction.
|
||||||
* @param strict Whether the order should be strict.
|
* @param strict Whether the order should be strict.
|
||||||
* @return {@code true} if the array is sorted.
|
* @throws NonMonotonousSequenceException if the array is not sorted.
|
||||||
* @throws NonMonotonousSequenceException if the array is not sorted
|
|
||||||
* and {@code abort} is {@code true}.
|
|
||||||
*/
|
*/
|
||||||
public static boolean checkOrder(double[] val, OrderDirection dir,
|
public static void checkOrder(double[] val, OrderDirection dir,
|
||||||
boolean strict) {
|
boolean strict) {
|
||||||
return checkOrder(val, dir, strict, true);
|
checkOrder(val, dir, strict, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks that the given array is sorted in strictly increasing order.
|
* Check that the given array is sorted in strictly increasing order.
|
||||||
*
|
*
|
||||||
* @param val Values.
|
* @param val Values.
|
||||||
* @return {@code true} if the array is sorted.
|
|
||||||
* @throws NonMonotonousSequenceException if the array is not sorted.
|
* @throws NonMonotonousSequenceException if the array is not sorted.
|
||||||
*/
|
*/
|
||||||
public static boolean checkOrder(double[] val) {
|
public static void checkOrder(double[] val) {
|
||||||
return checkOrder(val, OrderDirection.INCREASING, true);
|
checkOrder(val, OrderDirection.INCREASING, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user