Move Serializable from interface to implementation

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@777501 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-05-22 12:58:26 +00:00
parent 5d887e468e
commit 5d33262944
2 changed files with 8 additions and 4 deletions

View File

@ -17,8 +17,6 @@
package org.apache.commons.math.linear.decomposition;
import java.io.Serializable;
import org.apache.commons.math.linear.RealMatrix;
/**
@ -38,12 +36,14 @@ import org.apache.commons.math.linear.RealMatrix;
* the returned {@link DecompositionSolver}.</li>
* </ul>
*
* No longer Serializable since 3.3
*
* @see <a href="http://mathworld.wolfram.com/CholeskyDecomposition.html">MathWorld</a>
* @see <a href="http://en.wikipedia.org/wiki/Cholesky_decomposition">Wikipedia</a>
* @version $Revision$ $Date$
* @since 2.0
*/
public interface CholeskyDecomposition extends Serializable {
public interface CholeskyDecomposition {
/**
* Returns the matrix L of the decomposition.

View File

@ -17,6 +17,8 @@
package org.apache.commons.math.linear.decomposition;
import java.io.Serializable;
import org.apache.commons.math.MathRuntimeException;
import org.apache.commons.math.linear.InvalidMatrixException;
import org.apache.commons.math.linear.MatrixUtils;
@ -37,7 +39,9 @@ import org.apache.commons.math.linear.RealVectorImpl;
* @version $Revision$ $Date$
* @since 2.0
*/
public class CholeskyDecompositionImpl implements CholeskyDecomposition {
public class CholeskyDecompositionImpl implements CholeskyDecomposition, Serializable {
// TODO: Add Serializable documentation
// TODO: Check Serializable implementation
/** Serializable version identifier. */
private static final long serialVersionUID = -2036131698031167221L;