fixed another set of warnings identified by recent findbugs versions
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@790372 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c92046ecc9
commit
5129af7587
|
@ -66,8 +66,8 @@ public class RandomKeyTest {
|
|||
public void testRandomPermutation() {
|
||||
// never generate an invalid one
|
||||
for (int i=0; i<10; i++) {
|
||||
@SuppressWarnings("unused")
|
||||
DummyRandomKey drk = new DummyRandomKey(RandomKey.randomPermutation(20));
|
||||
assertNotNull(drk);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -392,8 +392,8 @@ public final class BigMatrixImplTest extends TestCase {
|
|||
assertEquals("nonsingular R test 2",-1d,m.getDeterminant().doubleValue(),normTolerance);
|
||||
|
||||
try {
|
||||
new BigMatrixImpl(testData2).getDeterminant().doubleValue();
|
||||
fail("Expecting InvalidMatrixException");
|
||||
double d = new BigMatrixImpl(testData2).getDeterminant().doubleValue();
|
||||
fail("Expecting InvalidMatrixException, got " + d);
|
||||
} catch (InvalidMatrixException ex) {
|
||||
// ignored
|
||||
}
|
||||
|
@ -405,8 +405,8 @@ public final class BigMatrixImplTest extends TestCase {
|
|||
assertEquals("identity trace",3d,m.getTrace().doubleValue(),entryTolerance);
|
||||
m = new BigMatrixImpl(testData2);
|
||||
try {
|
||||
m.getTrace().doubleValue();
|
||||
fail("Expecting NonSquareMatrixException");
|
||||
double t = m.getTrace().doubleValue();
|
||||
fail("Expecting NonSquareMatrixException, got " + t);
|
||||
} catch (NonSquareMatrixException ex) {
|
||||
// ignored
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue