MATH-470
"Un-deprecate" unit test. Javadoc clean up. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1058110 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ff3c66cbc7
commit
0e1dc43ecd
|
@ -519,14 +519,14 @@ public final class MathUtils {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns true iff both arguments are null or have same dimensions and all
|
||||
* their elements are equal as defined by
|
||||
* Returns {@code true} iff both arguments are {@code null} or have same
|
||||
* dimensions and all their elements are equal as defined by
|
||||
* {@link #equals(double,double) this method}.
|
||||
*
|
||||
* @param x first array
|
||||
* @param y second array
|
||||
* @return true if the values are both null or have same dimension
|
||||
* and equal elements.
|
||||
* @param x First array.
|
||||
* @param y Second array.
|
||||
* @return {@code true} if the values are both {@code null} or have same
|
||||
* dimension and equal elements.
|
||||
*/
|
||||
public static boolean equals(double[] x, double[] y) {
|
||||
if ((x == null) || (y == null)) {
|
||||
|
@ -544,14 +544,14 @@ public final class MathUtils {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns true iff both arguments are null or have same dimensions and all
|
||||
* their elements are equal as defined by
|
||||
* Returns {@code true} iff both arguments are {@code null} or have same
|
||||
* dimensions and all their elements are equal as defined by
|
||||
* {@link #equalsIncludingNaN(double,double) this method}.
|
||||
*
|
||||
* @param x first array
|
||||
* @param y second array
|
||||
* @return true if the values are both null or have same dimension and
|
||||
* equal elements
|
||||
* @param x First array.
|
||||
* @param y Second array.
|
||||
* @return {@code true} if the values are both {@code null} or have same
|
||||
* dimension and equal elements.
|
||||
*/
|
||||
public static boolean equalsIncludingNaN(double[] x, double[] y) {
|
||||
if ((x == null) || (y == null)) {
|
||||
|
|
|
@ -439,11 +439,6 @@ public final class MathUtilsTest extends TestCase {
|
|||
assertFalse(MathUtils.equalsIncludingNaN(Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, 100000));
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated To be removed in release 3.0 (replaced by {@link
|
||||
* #testArrayEqualsIncludingNaN()}.
|
||||
*/
|
||||
@Deprecated
|
||||
public void testArrayEquals() {
|
||||
assertFalse(MathUtils.equals(new double[] { 1d }, null));
|
||||
assertFalse(MathUtils.equals(null, new double[] { 1d }));
|
||||
|
|
Loading…
Reference in New Issue