commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdigg...@apache.org
Subject cvs commit: jakarta-commons/math/src/java/org/apache/commons/math/complex Complex.java ComplexFormat.java
Date Wed, 02 Jun 2004 00:07:01 GMT
mdiggory    2004/06/01 17:07:01

  Modified:    math/src/java/org/apache/commons/math/complex Complex.java
                        ComplexFormat.java
  Log:
  Adding serialversionUID to control versioning and allow for implementations that would like
to maintain serialization.
  
  Revision  Changes    Path
  1.8       +4 -1      jakarta-commons/math/src/java/org/apache/commons/math/complex/Complex.java
  
  Index: Complex.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/complex/Complex.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- Complex.java	29 Feb 2004 19:52:01 -0000	1.7
  +++ Complex.java	2 Jun 2004 00:07:01 -0000	1.8
  @@ -27,6 +27,9 @@
    */
   public class Complex implements Serializable  {
   
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = -6530173849413811929L;
  +    
       /** The square root of -1. A number representing "0.0 + 1.0i".*/    
       public static final Complex I = new Complex(0.0, 1.0);
       
  
  
  
  1.8       +6 -2      jakarta-commons/math/src/java/org/apache/commons/math/complex/ComplexFormat.java
  
  Index: ComplexFormat.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/complex/ComplexFormat.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ComplexFormat.java	1 Jun 2004 13:47:17 -0000	1.7
  +++ ComplexFormat.java	2 Jun 2004 00:07:01 -0000	1.8
  @@ -16,6 +16,7 @@
   
   package org.apache.commons.math.complex;
   
  +import java.io.Serializable;
   import java.text.FieldPosition;
   import java.text.Format;
   import java.text.NumberFormat;
  @@ -30,7 +31,10 @@
    * @author Apache Software Foundation
    * @version $Revision$ $Date$
    */
  -public class ComplexFormat extends Format {
  +public class ComplexFormat extends Format implements Serializable {
  +    
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = -6337346779577272306L;
       
       /** The default complex format. */ 
   	private static final ComplexFormat DEFAULT = new ComplexFormat();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message