Author: luc
Date: Mon Apr 20 20:16:48 2009
New Revision: 766847
URL: http://svn.apache.org/viewvc?rev=766847&view=rev
Log:
use a simpler syntax for a generic static test function
Modified:
commons/proper/math/trunk/src/test/org/apache/commons/math/TestUtils.java
Modified:
commons/proper/math/trunk/src/test/org/apache/commons/math/TestUtils.java
URL:
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/TestUtils.java?rev=766847&r1=766846&r2=766847&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/TestUtils.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/TestUtils.java
Mon Apr 20 20:16:48 2009
@@ -324,8 +324,7 @@
}
/** verifies that two arrays are equal */
- public static void assertEquals(FieldElement<? extends FieldElement<?>>[]
m,
- FieldElement<? extends FieldElement<?>>[]
n) {
+ public static <T extends FieldElement<T>> void assertEquals(T[] m, T[] n) {
if (m.length != n.length) {
Assert.fail("vectors not same length");
}