commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1003536 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/
Date Fri, 01 Oct 2010 13:42:39 GMT
Author: sebb
Date: Fri Oct  1 13:42:39 2010
New Revision: 1003536

URL: http://svn.apache.org/viewvc?rev=1003536&view=rev
Log:
Remove unread variable

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/CauchyDistributionTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/FDistributionTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/GammaDistributionTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/TDistributionTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/ZipfDistributionTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/CauchyDistributionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/CauchyDistributionTest.java?rev=1003536&r1=1003535&r2=1003536&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/CauchyDistributionTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/CauchyDistributionTest.java
Fri Oct  1 13:42:39 2010
@@ -94,15 +94,14 @@ public class CauchyDistributionTest exte
     }
 
     public void testPreconditions() {
-        CauchyDistribution dist;
         try {
-            dist = new CauchyDistributionImpl(0, 0);
+            new CauchyDistributionImpl(0, 0);
             fail("Cannot have zero scale");
         } catch (NotStrictlyPositiveException ex) {
             // Expected.
         }
         try {
-            dist = new CauchyDistributionImpl(0, -1);
+            new CauchyDistributionImpl(0, -1);
             fail("Cannot have negative scale");
         } catch (NotStrictlyPositiveException ex) {
             // Expected.

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/FDistributionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/FDistributionTest.java?rev=1003536&r1=1003535&r2=1003536&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/FDistributionTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/FDistributionTest.java
Fri Oct  1 13:42:39 2010
@@ -92,15 +92,14 @@ public class FDistributionTest extends C
     }
 
     public void testPreconditions() {
-        FDistribution dist;
         try {
-            dist = new FDistributionImpl(0, 1);
+            new FDistributionImpl(0, 1);
             fail("Expecting NotStrictlyPositiveException for df = 0");
         } catch (NotStrictlyPositiveException ex) {
             // Expected.
         }
         try {
-            dist = new FDistributionImpl(1, 0);
+            new FDistributionImpl(1, 0);
             fail("Expecting NotStrictlyPositiveException for df = 0");
         } catch (NotStrictlyPositiveException ex) {
             // Expected.

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/GammaDistributionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/GammaDistributionTest.java?rev=1003536&r1=1003535&r2=1003536&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/GammaDistributionTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/GammaDistributionTest.java
Fri Oct  1 13:42:39 2010
@@ -81,13 +81,13 @@ public class GammaDistributionTest exten
 
     public void testPreconditions() {
         try {
-            GammaDistribution distribution = new GammaDistributionImpl(0, 1);
+            new GammaDistributionImpl(0, 1);
             fail("Expecting NotStrictlyPositiveException for alpha = 0");
         } catch (NotStrictlyPositiveException ex) {
             // Expected.
         }
         try {
-            GammaDistribution distribution = new GammaDistributionImpl(1, 0);
+            new GammaDistributionImpl(1, 0);
             fail("Expecting NotStrictlyPositiveException for alpha = 0");
         } catch (NotStrictlyPositiveException ex) {
             // Expected.

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java?rev=1003536&r1=1003535&r2=1003536&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java
Fri Oct  1 13:42:39 2010
@@ -131,33 +131,32 @@ public class HypergeometricDistributionT
     }
 
     public void testPreconditions() {
-        HypergeometricDistribution dist;
         try {
-            dist = new HypergeometricDistributionImpl(0, 3, 5);
+            new HypergeometricDistributionImpl(0, 3, 5);
             fail("negative population size. NotStrictlyPositiveException expected");
         } catch(NotStrictlyPositiveException ex) {
             // Expected.
         }
         try {
-            dist = new HypergeometricDistributionImpl(5, -1, 5);
+            new HypergeometricDistributionImpl(5, -1, 5);
             fail("negative number of successes. NotPositiveException expected");
         } catch(NotPositiveException ex) {
             // Expected.
         }
         try {
-            dist = new HypergeometricDistributionImpl(5, 3, -1);
+            new HypergeometricDistributionImpl(5, 3, -1);
             fail("negative sample size. NotPositiveException expected");
         } catch(NotPositiveException ex) {
             // Expected.
         }
         try {
-            dist = new HypergeometricDistributionImpl(5, 6, 5);
+            new HypergeometricDistributionImpl(5, 6, 5);
             fail("numberOfSuccesses > populationSize. NumberIsTooLargeException expected");
         } catch(NumberIsTooLargeException ex) {
             // Expected.
         }
         try {
-            dist = new HypergeometricDistributionImpl(5, 3, 6);
+            new HypergeometricDistributionImpl(5, 3, 6);
             fail("sampleSize > populationSize. NumberIsTooLargeException expected");
         } catch(NumberIsTooLargeException ex) {
             // Expected.

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/TDistributionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/TDistributionTest.java?rev=1003536&r1=1003535&r2=1003536&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/TDistributionTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/TDistributionTest.java
Fri Oct  1 13:42:39 2010
@@ -112,7 +112,7 @@ public class TDistributionTest extends C
 
     public void testPreconditions() {
         try {
-            TDistribution dist = new TDistributionImpl(0);
+            new TDistributionImpl(0);
             fail("Expecting NotStrictlyPositiveException for df = 0");
         } catch (NotStrictlyPositiveException ex) {
             // expected

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/ZipfDistributionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/ZipfDistributionTest.java?rev=1003536&r1=1003535&r2=1003536&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/ZipfDistributionTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/ZipfDistributionTest.java
Fri Oct  1 13:42:39 2010
@@ -32,15 +32,14 @@ public class ZipfDistributionTest extend
     }
 
     public void testPreconditions() {
-        ZipfDistribution dist;
         try {
-            dist = new ZipfDistributionImpl(0, 1);
+            new ZipfDistributionImpl(0, 1);
             fail("NotStrictlyPositiveException expected");
         } catch (NotStrictlyPositiveException e) {
             // Expected.
         }
         try {
-            dist = new ZipfDistributionImpl(1, 0);
+            new ZipfDistributionImpl(1, 0);
             fail("NotStrictlyPositiveException expected");
         } catch (NotStrictlyPositiveException e) {
             // Expected.



Mime
View raw message