From c768f73cf16e95bba48313c1ae03074e760510f2 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Mon, 12 Feb 2007 19:37:49 +0000 Subject: [PATCH] fixed some missing serialVersionUID git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@506601 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/math/random/JDKRandomGenerator.java | 2 ++ src/java/org/apache/commons/math/random/RandomAdaptor.java | 3 +++ src/java/org/apache/commons/math/special/Beta.java | 7 +++++++ src/java/org/apache/commons/math/special/Erf.java | 3 +++ 4 files changed, 15 insertions(+) diff --git a/src/java/org/apache/commons/math/random/JDKRandomGenerator.java b/src/java/org/apache/commons/math/random/JDKRandomGenerator.java index 60425750c..736790802 100644 --- a/src/java/org/apache/commons/math/random/JDKRandomGenerator.java +++ b/src/java/org/apache/commons/math/random/JDKRandomGenerator.java @@ -26,4 +26,6 @@ import java.util.Random; * @version $Revision:$ $Date$ */ public class JDKRandomGenerator extends Random implements RandomGenerator { + /** Serializable version identifier */ + private static final long serialVersionUID = -3561898582944940550L; } diff --git a/src/java/org/apache/commons/math/random/RandomAdaptor.java b/src/java/org/apache/commons/math/random/RandomAdaptor.java index 96009965b..c065bd100 100644 --- a/src/java/org/apache/commons/math/random/RandomAdaptor.java +++ b/src/java/org/apache/commons/math/random/RandomAdaptor.java @@ -27,6 +27,9 @@ import java.util.Random; */ public class RandomAdaptor extends Random implements RandomGenerator { + /** Serializable version identifier */ + private static final long serialVersionUID = 2570805822599485047L; + /** Wrapped randomGenerator instance */ private RandomGenerator randomGenerator = null; diff --git a/src/java/org/apache/commons/math/special/Beta.java b/src/java/org/apache/commons/math/special/Beta.java index 7fb41daf9..4239c252d 100644 --- a/src/java/org/apache/commons/math/special/Beta.java +++ b/src/java/org/apache/commons/math/special/Beta.java @@ -28,6 +28,10 @@ import org.apache.commons.math.util.ContinuedFraction; * @version $Revision$ $Date$ */ public class Beta implements Serializable { + + /** Serializable version identifier */ + private static final long serialVersionUID = -3833485397404128220L; + /** Maximum allowed numerical error. */ private static final double DEFAULT_EPSILON = 10e-9; @@ -127,6 +131,9 @@ public class Beta implements Serializable { ret = 1.0 - regularizedBeta(1.0 - x, b, a, epsilon, maxIterations); } else { ContinuedFraction fraction = new ContinuedFraction() { + + private static final long serialVersionUID = -7658917278956100597L; + protected double getB(int n, double x) { double ret; double m; diff --git a/src/java/org/apache/commons/math/special/Erf.java b/src/java/org/apache/commons/math/special/Erf.java index 2514ea046..a199e5981 100644 --- a/src/java/org/apache/commons/math/special/Erf.java +++ b/src/java/org/apache/commons/math/special/Erf.java @@ -28,6 +28,9 @@ import org.apache.commons.math.MathException; */ public class Erf implements Serializable { + /** Serializable version identifier */ + private static final long serialVersionUID = 490960015010326571L; + /** * Default constructor. Prohibit instantiation. */