diff --git a/findbugs-exclude-filter.xml b/findbugs-exclude-filter.xml index fdb0ed5de..9bba586e0 100644 --- a/findbugs-exclude-filter.xml +++ b/findbugs-exclude-filter.xml @@ -27,7 +27,7 @@ - + @@ -44,7 +44,6 @@ - diff --git a/src/java/org/apache/commons/math/distribution/AbstractContinuousDistribution.java b/src/java/org/apache/commons/math/distribution/AbstractContinuousDistribution.java index 8e4cf9fdc..4d32d1fc0 100644 --- a/src/java/org/apache/commons/math/distribution/AbstractContinuousDistribution.java +++ b/src/java/org/apache/commons/math/distribution/AbstractContinuousDistribution.java @@ -66,7 +66,7 @@ public abstract class AbstractContinuousDistribution // subclasses can overide if there is a better method. UnivariateRealFunction rootFindingFunction = new UnivariateRealFunction() { - + private static final long serialVersionUID = 1043729002768873023L; public double value(double x) throws FunctionEvaluationException { try { return cumulativeProbability(x) - p; diff --git a/src/java/org/apache/commons/math/linear/RealVector.java b/src/java/org/apache/commons/math/linear/RealVector.java index 6cfdd6b0a..d21e643e0 100644 --- a/src/java/org/apache/commons/math/linear/RealVector.java +++ b/src/java/org/apache/commons/math/linear/RealVector.java @@ -16,6 +16,8 @@ */ package org.apache.commons.math.linear; +import java.io.Serializable; + /** * Interface defining a real-valued vector with basic algebraic operations. *

@@ -39,7 +41,7 @@ package org.apache.commons.math.linear; * @version $Revision$ $Date$ * @since 2.0 */ -public interface RealVector { +public interface RealVector extends Serializable { /** * Returns a (deep) copy of this. diff --git a/src/java/org/apache/commons/math/linear/SparseRealVector.java b/src/java/org/apache/commons/math/linear/SparseRealVector.java index 9fe045dd2..6204daf77 100644 --- a/src/java/org/apache/commons/math/linear/SparseRealVector.java +++ b/src/java/org/apache/commons/math/linear/SparseRealVector.java @@ -27,6 +27,9 @@ import org.apache.commons.math.util.OpenIntToDoubleHashMap.Iterator; */ public class SparseRealVector implements RealVector { + /** Serializable version identifier. */ + private static final long serialVersionUID = 8772222695580707260L; + /** Default Tolerance for having a value considered zero. */ public static final double DEFAULT_ZERO_TOLERANCE = 1.0e-12;