added serialVersionUID (#376)

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@13773 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
michelou 2008-01-22 16:53:38 +00:00
parent 04440294f7
commit 976f4b7691
10 changed files with 31 additions and 14 deletions

View File

@ -1,6 +1,6 @@
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
** / __/ __// _ | / / / _ | (c) 2002-2008, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
@ -13,6 +13,8 @@ package scala.runtime;
public class BooleanRef implements java.io.Serializable {
private static final long serialVersionUID = -5730524563015615974L;
public boolean elem;
public BooleanRef(boolean elem) { this.elem = elem; }
public String toString() { return "" + elem; }

View File

@ -1,6 +1,6 @@
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
** / __/ __// _ | / / / _ | (c) 2002-2008, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
@ -12,9 +12,8 @@
package scala.runtime;
public final class BoxedUnit
implements java.io.Serializable
{
public final class BoxedUnit implements java.io.Serializable {
private static final long serialVersionUID = 8405543498931817370L;
public final static BoxedUnit UNIT = new BoxedUnit();

View File

@ -1,7 +1,7 @@
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | **
** / __/ __// _ | / / / _ | (c) 2002-2008, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
@ -13,6 +13,8 @@ package scala.runtime;
public class ByteRef implements java.io.Serializable {
private static final long serialVersionUID = -100666928446877072L;
public byte elem;
public ByteRef(byte elem) { this.elem = elem; }
public String toString() { return Byte.toString(elem); }

View File

@ -1,6 +1,6 @@
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
** / __/ __// _ | / / / _ | (c) 2002-2008, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
@ -13,6 +13,8 @@ package scala.runtime;
public class CharRef implements java.io.Serializable {
private static final long serialVersionUID = 6537214938268005702L;
public char elem;
public CharRef(char elem) { this.elem = elem; }
public String toString() { return Character.toString(elem); }

View File

@ -1,6 +1,6 @@
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
** / __/ __// _ | / / / _ | (c) 2002-2008, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
@ -13,6 +13,8 @@ package scala.runtime;
public class DoubleRef implements java.io.Serializable {
private static final long serialVersionUID = 8304402127373655534L;
public double elem;
public DoubleRef(double elem) { this.elem = elem; }
public String toString() { return Double.toString(elem); }

View File

@ -1,6 +1,6 @@
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
** / __/ __// _ | / / / _ | (c) 2002-2008, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
@ -13,6 +13,8 @@ package scala.runtime;
public class FloatRef implements java.io.Serializable {
private static final long serialVersionUID = -5793980990371366933L;
public float elem;
public FloatRef(float elem) { this.elem = elem; }
public String toString() { return Float.toString(elem); }

View File

@ -1,6 +1,6 @@
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
** / __/ __// _ | / / / _ | (c) 2002-2008, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
@ -13,6 +13,8 @@ package scala.runtime;
public class IntRef implements java.io.Serializable {
private static final long serialVersionUID = 1488197132022872888L;
public int elem;
public IntRef(int elem) { this.elem = elem; }
public String toString() { return Integer.toString(elem); }

View File

@ -1,6 +1,6 @@
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
** / __/ __// _ | / / / _ | (c) 2002-2008, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
@ -13,6 +13,8 @@ package scala.runtime;
public class LongRef implements java.io.Serializable {
private static final long serialVersionUID = -3567869820105829499L;
public long elem;
public LongRef(long elem) { this.elem = elem; }
public String toString() { return Long.toString(elem); }

View File

@ -1,6 +1,6 @@
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
** / __/ __// _ | / / / _ | (c) 2002-2008, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
@ -13,6 +13,8 @@ package scala.runtime;
public class ObjectRef implements java.io.Serializable {
private static final long serialVersionUID = -9055728157600312291L;
public Object elem;
public ObjectRef(Object elem) { this.elem = elem; }
public String toString() { return "" + elem; }

View File

@ -1,6 +1,6 @@
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
** / __/ __// _ | / / / _ | (c) 2002-2008, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
@ -13,6 +13,8 @@ package scala.runtime;
public class ShortRef implements java.io.Serializable {
private static final long serialVersionUID = 4218441291229072313L;
public short elem;
public ShortRef(short elem) { this.elem = elem; }
}