From 6135415f3184a4983f80141ccbb0907e0224bbb6 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Mon, 20 Jul 2009 19:34:06 +0000 Subject: [PATCH] convergence checkers should not be serializable git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@795972 13f79535-47bb-0310-9956-ffa450edef68 --- .../math/optimization/SimpleRealPointChecker.java | 9 +-------- .../math/optimization/SimpleScalarValueChecker.java | 9 +-------- .../math/optimization/SimpleVectorialPointChecker.java | 9 +-------- .../math/optimization/SimpleVectorialValueChecker.java | 9 +-------- 4 files changed, 4 insertions(+), 32 deletions(-) diff --git a/src/java/org/apache/commons/math/optimization/SimpleRealPointChecker.java b/src/java/org/apache/commons/math/optimization/SimpleRealPointChecker.java index cec0b86cc..e3d86d531 100644 --- a/src/java/org/apache/commons/math/optimization/SimpleRealPointChecker.java +++ b/src/java/org/apache/commons/math/optimization/SimpleRealPointChecker.java @@ -17,8 +17,6 @@ package org.apache.commons.math.optimization; -import java.io.Serializable; - import org.apache.commons.math.util.MathUtils; /** @@ -33,12 +31,7 @@ import org.apache.commons.math.util.MathUtils; * @version $Revision: 757180 $ $Date: 2009-03-22 13:54:45 +0100 (dim., 22 mars 2009) $ * @since 2.0 */ -public class SimpleRealPointChecker implements RealConvergenceChecker, Serializable { - // TODO: Add Serializable documentation - // TODO: Check Serializable implementation - - /** Serializable version identifier. */ - private static final long serialVersionUID = 2490271385513842607L; +public class SimpleRealPointChecker implements RealConvergenceChecker { /** Default relative threshold. */ private static final double DEFAULT_RELATIVE_THRESHOLD = 100 * MathUtils.EPSILON; diff --git a/src/java/org/apache/commons/math/optimization/SimpleScalarValueChecker.java b/src/java/org/apache/commons/math/optimization/SimpleScalarValueChecker.java index 4609d7c97..646707c7e 100644 --- a/src/java/org/apache/commons/math/optimization/SimpleScalarValueChecker.java +++ b/src/java/org/apache/commons/math/optimization/SimpleScalarValueChecker.java @@ -17,8 +17,6 @@ package org.apache.commons.math.optimization; -import java.io.Serializable; - import org.apache.commons.math.util.MathUtils; /** @@ -33,12 +31,7 @@ import org.apache.commons.math.util.MathUtils; * @version $Revision$ $Date$ * @since 2.0 */ -public class SimpleScalarValueChecker implements RealConvergenceChecker, Serializable { - // TODO: Add Serializable documentation - // TODO: Check Serializable implementation - - /** Serializable version identifier. */ - private static final long serialVersionUID = 2490271385513842607L; +public class SimpleScalarValueChecker implements RealConvergenceChecker { /** Default relative threshold. */ private static final double DEFAULT_RELATIVE_THRESHOLD = 100 * MathUtils.EPSILON; diff --git a/src/java/org/apache/commons/math/optimization/SimpleVectorialPointChecker.java b/src/java/org/apache/commons/math/optimization/SimpleVectorialPointChecker.java index ec1faa6bf..4738af653 100644 --- a/src/java/org/apache/commons/math/optimization/SimpleVectorialPointChecker.java +++ b/src/java/org/apache/commons/math/optimization/SimpleVectorialPointChecker.java @@ -17,8 +17,6 @@ package org.apache.commons.math.optimization; -import java.io.Serializable; - import org.apache.commons.math.util.MathUtils; /** @@ -33,12 +31,7 @@ import org.apache.commons.math.util.MathUtils; * @version $Revision$ $Date$ * @since 2.0 */ -public class SimpleVectorialPointChecker implements VectorialConvergenceChecker, Serializable { - // TODO: Add Serializable documentation - // TODO: Check Serializable implementation - - /** Serializable version identifier. */ - private static final long serialVersionUID = 6571098732056285089L; +public class SimpleVectorialPointChecker implements VectorialConvergenceChecker { /** Default relative threshold. */ private static final double DEFAULT_RELATIVE_THRESHOLD = 100 * MathUtils.EPSILON; diff --git a/src/java/org/apache/commons/math/optimization/SimpleVectorialValueChecker.java b/src/java/org/apache/commons/math/optimization/SimpleVectorialValueChecker.java index 082ec0db9..ca1e3a8d3 100644 --- a/src/java/org/apache/commons/math/optimization/SimpleVectorialValueChecker.java +++ b/src/java/org/apache/commons/math/optimization/SimpleVectorialValueChecker.java @@ -17,8 +17,6 @@ package org.apache.commons.math.optimization; -import java.io.Serializable; - import org.apache.commons.math.util.MathUtils; /** @@ -33,12 +31,7 @@ import org.apache.commons.math.util.MathUtils; * @version $Revision$ $Date$ * @since 2.0 */ -public class SimpleVectorialValueChecker implements VectorialConvergenceChecker, Serializable { - // TODO: Add Serializable documentation - // TODO: Check Serializable implementation - - /** Serializable version identifier. */ - private static final long serialVersionUID = -3892196630780700808L; +public class SimpleVectorialValueChecker implements VectorialConvergenceChecker { /** Default relative threshold. */ private static final double DEFAULT_RELATIVE_THRESHOLD = 100 * MathUtils.EPSILON;