summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-05-13 14:35:31 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-05-13 14:35:31 +0000
commit26641ee26a27aa8cc23152b763cb8eea23dfeb43 (patch)
tree4c2f046b91b87672fcb91147b71566efdc43c818
parenta73188c76f689bf7836ef3c97b5df7b168eb2e28 (diff)
downloadscala-26641ee26a27aa8cc23152b763cb8eea23dfeb43.tar.gz
scala-26641ee26a27aa8cc23152b763cb8eea23dfeb43.tar.bz2
scala-26641ee26a27aa8cc23152b763cb8eea23dfeb43.zip
Removed nullness check from trunk.
-rw-r--r--src/library/scala/Option.scala3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/library/scala/Option.scala b/src/library/scala/Option.scala
index 2d07a05944..b24b575216 100644
--- a/src/library/scala/Option.scala
+++ b/src/library/scala/Option.scala
@@ -131,13 +131,10 @@ sealed abstract class Option[+A] extends Product {
/** Class <code>Some[A]</code> represents existing values of type
* <code>A</code>.
*
- * The argument may not be null.
- *
* @author Martin Odersky
* @version 1.0, 16/07/2003
*/
final case class Some[+A](x: A) extends Option[A] {
- assert (x != null)
def isEmpty = false
def get = x
}