Skip to content

Commit 94d1301

Browse files
committed
Adding serialversionUID to control versioning and allow for implementations that would like to maintain serialization.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141270 13f79535-47bb-0310-9956-ffa450edef68
1 parent 1a46b43 commit 94d1301

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

src/java/org/apache/commons/math/random/EmpiricalDistributionImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@
5353
* entry per line.</li>
5454
* </ul></p>
5555
*
56-
* @version $Revision: 1.19 $ $Date: 2004/04/26 19:15:48 $
56+
* @version $Revision: 1.20 $ $Date: 2004/06/02 00:20:21 $
5757
*/
5858
public class EmpiricalDistributionImpl implements Serializable, EmpiricalDistribution {
5959

60+
/** Serializable version identifier */
61+
static final long serialVersionUID = -6773236347582113490L;
6062

6163
/** List of DescriptiveStatistics objects characterizing the bins */
6264
private ArrayList binStats = null;

src/java/org/apache/commons/math/random/RandomDataImpl.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,13 @@
6666
* (so secure sequences started with calls to reseedSecure(long) won't be
6767
* identical).</li></ul>
6868
*
69-
* @version $Revision: 1.13 $ $Date: 2004/04/11 19:00:45 $
69+
* @version $Revision: 1.14 $ $Date: 2004/06/02 00:20:21 $
7070
*/
7171
public class RandomDataImpl implements RandomData, Serializable {
7272

73+
/** Serializable version identifier */
74+
static final long serialVersionUID = -626730818244969716L;
75+
7376
/** underlying random number generator */
7477
private Random rand = null;
7578

src/java/org/apache/commons/math/stat/Frequency.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@
3232
* The values are ordered using the default (natural order), unless a <code>Comparator</code>
3333
* is supplied in the constructor.
3434
*
35-
* @version $Revision: 1.21 $ $Date: 2004/05/31 20:57:12 $
35+
* @version $Revision: 1.22 $ $Date: 2004/06/02 00:24:52 $
3636
*/
3737
public class Frequency implements Serializable {
3838

39+
/** Serializable version identifier */
40+
static final long serialVersionUID = -3845586908418844111L;
41+
3942
/** underlying collection */
4043
private SortedBag freqTable = null;
4144

0 commit comments

Comments
 (0)