commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1197488 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUSolverTest.java
Date Fri, 04 Nov 2011 10:23:15 GMT
Author: sebb
Date: Fri Nov  4 10:23:14 2011
New Revision: 1197488

URL: http://svn.apache.org/viewvc?rev=1197488&view=rev
Log:
Fix generics

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUSolverTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUSolverTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUSolverTest.java?rev=1197488&r1=1197487&r2=1197488&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUSolverTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUSolverTest.java
Fri Nov  4 10:23:14 2011
@@ -100,10 +100,10 @@ public class FieldLUSolverTest {
     /** test solve singularity errors */
     @Test
     public void testSolveSingularityErrors() {
-        FieldDecompositionSolver solver;
-        solver = new FieldLUDecomposition(createFractionMatrix(singular))
+        FieldDecompositionSolver<Fraction> solver;
+        solver = new FieldLUDecomposition<Fraction>(createFractionMatrix(singular))
             .getSolver();
-        FieldMatrix b = createFractionMatrix(new int[2][2]);
+        FieldMatrix<Fraction> b = createFractionMatrix(new int[2][2]);
         try {
             solver.solve(b);
             Assert.fail("an exception should have been thrown");
@@ -121,7 +121,7 @@ public class FieldLUSolverTest {
     /** test solve */
     @Test
     public void testSolve() {
-        FieldDecompositionSolver solver;
+        FieldDecompositionSolver<Fraction> solver;
         solver = new FieldLUDecomposition<Fraction>(createFractionMatrix(testData))
             .getSolver();
         FieldMatrix<Fraction> b = createFractionMatrix(new int[][] {



Mime
View raw message