diff options
author | mihaylov <mihaylov@epfl.ch> | 2005-05-20 15:07:10 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2005-05-20 15:07:10 +0000 |
commit | 67282530f6c215ef2b25444ed4c60ffcb80cd0af (patch) | |
tree | 4452845ebd0ed0ac0a6c8b5cc99f1cb63af87749 | |
parent | b021e998f897a86b02ddfbf935f0fe2ba99e9dcb (diff) | |
download | scala-67282530f6c215ef2b25444ed4c60ffcb80cd0af.tar.gz scala-67282530f6c215ef2b25444ed4c60ffcb80cd0af.tar.bz2 scala-67282530f6c215ef2b25444ed4c60ffcb80cd0af.zip |
Refer to java.io.Serializable directly rather t...
Refer to java.io.Serializable directly rather than importing it.
-rw-r--r-- | sources/scala/$colon$colon.scala | 4 | ||||
-rw-r--r-- | sources/scala/Nil.scala | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/sources/scala/$colon$colon.scala b/sources/scala/$colon$colon.scala index 1a2f575a28..f9bc4debd9 100644 --- a/sources/scala/$colon$colon.scala +++ b/sources/scala/$colon$colon.scala @@ -9,8 +9,6 @@ package scala; -import java.io.Serializable; - import Predef._; /** A non empty list characterized by a head and a tail. @@ -18,7 +16,7 @@ import Predef._; * @author Martin Odersky * @version 1.0, 15/07/2003 */ -final case class ::[+b](hd: b, tl: List[b]) extends List[b] with Serializable { +final case class ::[+b](hd: b, tl: List[b]) extends List[b] with java.io.Serializable { private val serialVersionUID = 0 - 8476791151983527571L; def isEmpty: boolean = false; def head: b = hd; diff --git a/sources/scala/Nil.scala b/sources/scala/Nil.scala index 94d1ec218a..608982d3d4 100644 --- a/sources/scala/Nil.scala +++ b/sources/scala/Nil.scala @@ -9,7 +9,6 @@ package scala; -import java.io.Serializable; import Predef._; /** The empty list. @@ -17,7 +16,7 @@ import Predef._; * @author Martin Odersky * @version 1.0, 15/07/2003 */ -case object Nil extends List[All] with Serializable { +case object Nil extends List[All] with java.io.Serializable { private val serialVersionUID = 0 - 8256821097970055419L; def isEmpty = true; def head: All = error("head of empty list"); |