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:
Gilles Sadowski 2011-01-06 13:21:17 +00:00
parent fc20a308d7
commit 2399c99f9e

View File

@ -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);
} }
/** /**