commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject svn commit: r778522 - in /commons/proper/math/trunk/src: java/org/apache/commons/math/special/ java/org/apache/commons/math/util/ test/org/apache/commons/math/util/
Date Mon, 25 May 2009 22:24:51 GMT
Author: billbarker
Date: Mon May 25 22:24:50 2009
New Revision: 778522

URL: http://svn.apache.org/viewvc?rev=778522&view=rev
Log:
Serializable changes to util

Modified:
    commons/proper/math/trunk/src/java/org/apache/commons/math/special/Beta.java
    commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java
    commons/proper/math/trunk/src/java/org/apache/commons/math/util/ContinuedFraction.java
    commons/proper/math/trunk/src/test/org/apache/commons/math/util/ContinuedFractionTest.java

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/special/Beta.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/special/Beta.java?rev=778522&r1=778521&r2=778522&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/special/Beta.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/special/Beta.java Mon May 25
22:24:50 2009
@@ -132,8 +132,6 @@
         } else {
             ContinuedFraction fraction = new ContinuedFraction() {
 
-                private static final long serialVersionUID = -7658917278956100597L;
-
                 @Override
                 protected double getB(int n, double x) {
                     double ret;

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java?rev=778522&r1=778521&r2=778522&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/special/Gamma.java Mon May
25 22:24:50 2009
@@ -248,8 +248,6 @@
             // create continued fraction
             ContinuedFraction cf = new ContinuedFraction() {
 
-                private static final long serialVersionUID = 5378525034886164398L;
-
                 @Override
                 protected double getA(int n, double x) {
                     return ((2.0 * n) + 1.0) - a + x;

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/util/ContinuedFraction.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/util/ContinuedFraction.java?rev=778522&r1=778521&r2=778522&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/util/ContinuedFraction.java
(original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/util/ContinuedFraction.java
Mon May 25 22:24:50 2009
@@ -16,8 +16,6 @@
  */
 package org.apache.commons.math.util;
 
-import java.io.Serializable;
-
 import org.apache.commons.math.ConvergenceException;
 import org.apache.commons.math.MathException;
 import org.apache.commons.math.MaxIterationsExceededException;
@@ -36,10 +34,7 @@
  *
  * @version $Revision$ $Date$
  */
-public abstract class ContinuedFraction implements Serializable {
-    
-    /** Serialization UID */
-    private static final long serialVersionUID = 1768555336266158242L;
+public abstract class ContinuedFraction {
     
     /** Maximum allowed numerical error. */
     private static final double DEFAULT_EPSILON = 10e-9;

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/util/ContinuedFractionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/util/ContinuedFractionTest.java?rev=778522&r1=778521&r2=778522&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/util/ContinuedFractionTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/util/ContinuedFractionTest.java
Mon May 25 22:24:50 2009
@@ -34,8 +34,7 @@
 
     public void testGoldenRatio(){
         ContinuedFraction cf = new ContinuedFraction() {
-            private static final long serialVersionUID = 4696264881688589546L;
-
+            
             @Override
             public double getA(int n, double x) {
                 return 1.0;



Mime
View raw message