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/random RandomDataImpl.java EmpiricalDistributionImpl.java
Date Wed, 02 Jun 2004 00:20:21 GMT
mdiggory    2004/06/01 17:20:21

  Modified:    math/src/java/org/apache/commons/math/random
                        RandomDataImpl.java EmpiricalDistributionImpl.java
  Log:
  Adding serialversionUID to control versioning and allow for implementations that would like
to maintain serialization.
  
  Revision  Changes    Path
  1.14      +4 -1      jakarta-commons/math/src/java/org/apache/commons/math/random/RandomDataImpl.java
  
  Index: RandomDataImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/random/RandomDataImpl.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- RandomDataImpl.java	11 Apr 2004 19:00:45 -0000	1.13
  +++ RandomDataImpl.java	2 Jun 2004 00:20:21 -0000	1.14
  @@ -70,6 +70,9 @@
    */
   public class RandomDataImpl implements RandomData, Serializable {
       
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = -626730818244969716L;
  +
       /** underlying random number generator */
       private Random rand = null;
       
  
  
  
  1.20      +3 -1      jakarta-commons/math/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java
  
  Index: EmpiricalDistributionImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- EmpiricalDistributionImpl.java	26 Apr 2004 19:15:48 -0000	1.19
  +++ EmpiricalDistributionImpl.java	2 Jun 2004 00:20:21 -0000	1.20
  @@ -57,6 +57,8 @@
    */
   public class EmpiricalDistributionImpl implements Serializable, EmpiricalDistribution {
   
  +    /** Serializable version identifier */
  +    static final long serialVersionUID = -6773236347582113490L;
       
       /** List of DescriptiveStatistics objects characterizing the bins */
       private ArrayList binStats = null;
  
  
  

---------------------------------------------------------------------
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