From 5fc860d2c151e7d39b49961fe8514563f890e9ce Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Sat, 20 Jun 2009 18:17:32 +0000 Subject: [PATCH] removed serialization for multistart optimizers git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@786878 13f79535-47bb-0310-9956-ffa450edef68 --- ...ultiStartDifferentiableMultivariateRealOptimizer.java | 6 +----- .../MultiStartMultivariateRealOptimizer.java | 9 ++------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/java/org/apache/commons/math/optimization/MultiStartDifferentiableMultivariateRealOptimizer.java b/src/java/org/apache/commons/math/optimization/MultiStartDifferentiableMultivariateRealOptimizer.java index 058277296..d6d57daab 100644 --- a/src/java/org/apache/commons/math/optimization/MultiStartDifferentiableMultivariateRealOptimizer.java +++ b/src/java/org/apache/commons/math/optimization/MultiStartDifferentiableMultivariateRealOptimizer.java @@ -17,7 +17,6 @@ package org.apache.commons.math.optimization; -import java.io.Serializable; import java.util.Arrays; import java.util.Comparator; @@ -39,10 +38,7 @@ import org.apache.commons.math.random.RandomVectorGenerator; * @since 2.0 */ public class MultiStartDifferentiableMultivariateRealOptimizer - implements DifferentiableMultivariateRealOptimizer, Serializable { - - /** Serializable version identifier. */ - private static final long serialVersionUID = -3220364832729994537L; + implements DifferentiableMultivariateRealOptimizer { /** Underlying classical optimizer. */ private final DifferentiableMultivariateRealOptimizer optimizer; diff --git a/src/java/org/apache/commons/math/optimization/MultiStartMultivariateRealOptimizer.java b/src/java/org/apache/commons/math/optimization/MultiStartMultivariateRealOptimizer.java index 3f09dc71e..3c757f8a6 100644 --- a/src/java/org/apache/commons/math/optimization/MultiStartMultivariateRealOptimizer.java +++ b/src/java/org/apache/commons/math/optimization/MultiStartMultivariateRealOptimizer.java @@ -17,7 +17,6 @@ package org.apache.commons.math.optimization; -import java.io.Serializable; import java.util.Arrays; import java.util.Comparator; @@ -38,12 +37,8 @@ import org.apache.commons.math.random.RandomVectorGenerator; * @version $Revision$ $Date$ * @since 2.0 */ -public class MultiStartMultivariateRealOptimizer implements MultivariateRealOptimizer, Serializable { - // TODO: Add Serializable documentation - // TODO: Check Serializable implementation - - /** Serializable version identifier. */ - private static final long serialVersionUID = 5983375963110961019L; +public class MultiStartMultivariateRealOptimizer + implements MultivariateRealOptimizer { /** Underlying classical optimizer. */ private final MultivariateRealOptimizer optimizer;