Author: luc
Date: Sun Mar 10 13:07:08 2013
New Revision: 1454847

URL: http://svn.apache.org/r1454847
Log:
Fixed warnings.

Modified:
    
commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/BitsStreamGeneratorTest.java
    
commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/SynchronizedRandomGeneratorTest.java

Modified: 
commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/BitsStreamGeneratorTest.java
URL: 
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/BitsStreamGeneratorTest.java?rev=1454847&r1=1454846&r2=1454847&view=diff
==============================================================================
--- 
commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/BitsStreamGeneratorTest.java
 (original)
+++ 
commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/BitsStreamGeneratorTest.java
 Sun Mar 10 13:07:08 2013
@@ -42,6 +42,7 @@ public class BitsStreamGeneratorTest ext
      */
     static class TestBitStreamGenerator extends BitsStreamGenerator {
 
+        private static final long serialVersionUID = 1L;
         private BitRandom ran = new BitRandom();
         
         @Override

Modified: 
commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/SynchronizedRandomGeneratorTest.java
URL: 
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/SynchronizedRandomGeneratorTest.java?rev=1454847&r1=1454846&r2=1454847&view=diff
==============================================================================
--- 
commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/SynchronizedRandomGeneratorTest.java
 (original)
+++ 
commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/SynchronizedRandomGeneratorTest.java
 Sun Mar 10 13:07:08 2013
@@ -16,18 +16,16 @@
  */
 package org.apache.commons.math3.random;
 
-import java.util.List;
 import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.concurrent.TimeUnit;
-import java.util.concurrent.Executors;
-import java.util.concurrent.ExecutorService;
+import java.util.List;
 import java.util.concurrent.Callable;
-import java.util.concurrent.Future;
 import java.util.concurrent.ExecutionException;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
 
-import org.junit.Test;
 import org.junit.Assert;
+import org.junit.Test;
 
 public class SynchronizedRandomGeneratorTest {
     private final int numberOfThreads = 5;
@@ -68,13 +66,12 @@ public class SynchronizedRandomGenerator
 
     @Test
     public void testMath899Sync() throws Throwable {
-        double[] v = null;
         try {
             // Running the test several times in order to decrease the
             // probability that a non-thread-safe code did not trigger
             // a concurrency problem.
             for (int i = 0; i < 10; i++) {
-                v = doTestMath899(true, numberOfThreads, numberOfGenerators, 
numberOfSamples);
+                doTestMath899(true, numberOfThreads, numberOfGenerators, 
numberOfSamples);
             }
         } catch (InterruptedException e) {
             Assert.fail(e.getMessage());


Reply via email to