From a244c199d4bd155567d9b58875dcb5ea46f6a738 Mon Sep 17 00:00:00 2001 From: Sebastien Brisard Date: Thu, 5 Jan 2012 04:15:09 +0000 Subject: [PATCH] Updated serialVersionUID. Related to MATH-677. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1227477 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/math/transform/FastCosineTransformer.java | 8 +++++++- .../commons/math/transform/FastFourierTransformer.java | 2 +- .../commons/math/transform/FastHadamardTransformer.java | 7 ++++++- .../commons/math/transform/FastSineTransformer.java | 8 +++++++- .../org/apache/commons/math/transform/TransformUtils.java | 2 +- 5 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/math/transform/FastCosineTransformer.java b/src/main/java/org/apache/commons/math/transform/FastCosineTransformer.java index 0fda16c81..f390af56b 100644 --- a/src/main/java/org/apache/commons/math/transform/FastCosineTransformer.java +++ b/src/main/java/org/apache/commons/math/transform/FastCosineTransformer.java @@ -16,6 +16,8 @@ */ package org.apache.commons.math.transform; +import java.io.Serializable; + import org.apache.commons.math.analysis.FunctionUtils; import org.apache.commons.math.analysis.UnivariateFunction; import org.apache.commons.math.complex.Complex; @@ -110,7 +112,11 @@ import org.apache.commons.math.util.FastMath; * @version $Id$ * @since 1.2 */ -public class FastCosineTransformer implements RealTransformer { +public class FastCosineTransformer implements RealTransformer, Serializable { + + /** Serializable version identifier. */ + static final long serialVersionUID = 20120501L; + /** * {@code true} if the orthogonal version of the DCT should be used. * diff --git a/src/main/java/org/apache/commons/math/transform/FastFourierTransformer.java b/src/main/java/org/apache/commons/math/transform/FastFourierTransformer.java index 3517e79be..3d403b1b4 100644 --- a/src/main/java/org/apache/commons/math/transform/FastFourierTransformer.java +++ b/src/main/java/org/apache/commons/math/transform/FastFourierTransformer.java @@ -89,7 +89,7 @@ import org.apache.commons.math.util.FastMath; public class FastFourierTransformer implements Serializable { /** Serializable version identifier. */ - static final long serialVersionUID = 5138259215438106000L; + static final long serialVersionUID = 20120501L; /** * {@code true} if the unitary version of the DFT should be used. diff --git a/src/main/java/org/apache/commons/math/transform/FastHadamardTransformer.java b/src/main/java/org/apache/commons/math/transform/FastHadamardTransformer.java index 9bac62770..60ae85786 100644 --- a/src/main/java/org/apache/commons/math/transform/FastHadamardTransformer.java +++ b/src/main/java/org/apache/commons/math/transform/FastHadamardTransformer.java @@ -16,6 +16,8 @@ */ package org.apache.commons.math.transform; +import java.io.Serializable; + import org.apache.commons.math.analysis.FunctionUtils; import org.apache.commons.math.analysis.UnivariateFunction; import org.apache.commons.math.exception.MathIllegalArgumentException; @@ -35,7 +37,10 @@ import org.apache.commons.math.util.ArithmeticUtils; * @version $Id$ * @since 2.0 */ -public class FastHadamardTransformer implements RealTransformer { +public class FastHadamardTransformer implements RealTransformer, Serializable { + + /** Serializable version identifier. */ + static final long serialVersionUID = 20120501L; /** * {@inheritDoc} diff --git a/src/main/java/org/apache/commons/math/transform/FastSineTransformer.java b/src/main/java/org/apache/commons/math/transform/FastSineTransformer.java index 1096eb99b..87ba56e1b 100644 --- a/src/main/java/org/apache/commons/math/transform/FastSineTransformer.java +++ b/src/main/java/org/apache/commons/math/transform/FastSineTransformer.java @@ -16,6 +16,8 @@ */ package org.apache.commons.math.transform; +import java.io.Serializable; + import org.apache.commons.math.analysis.FunctionUtils; import org.apache.commons.math.analysis.UnivariateFunction; import org.apache.commons.math.complex.Complex; @@ -110,7 +112,11 @@ import org.apache.commons.math.util.FastMath; * @version $Id: FastSineTransformer.java 1213157 2011-12-12 07:19:23Z celestin$ * @since 1.2 */ -public class FastSineTransformer implements RealTransformer { +public class FastSineTransformer implements RealTransformer, Serializable { + + /** Serializable version identifier. */ + static final long serialVersionUID = 20120501L; + /** * {@code true} if the orthogonal version of the DCT should be used. * diff --git a/src/main/java/org/apache/commons/math/transform/TransformUtils.java b/src/main/java/org/apache/commons/math/transform/TransformUtils.java index 5b20ec741..5b57e5277 100644 --- a/src/main/java/org/apache/commons/math/transform/TransformUtils.java +++ b/src/main/java/org/apache/commons/math/transform/TransformUtils.java @@ -21,7 +21,7 @@ import org.apache.commons.math.complex.Complex; /** * Useful functions for the implementation of various transforms. * - * @version $Id $ + * @version $Id$ * @since 3.0 */ public class TransformUtils {