diff options
author | mihaylov <mihaylov@epfl.ch> | 2006-10-24 14:06:06 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2006-10-24 14:06:06 +0000 |
commit | 7e705baa349c3fc00c6ac9a5da60db4121944d5c (patch) | |
tree | 2e3f6afcb8b64e998fe4b4b32d61c5f0d6d3dcd1 /src/library/scala/collection/mutable/MutableList.scala | |
parent | 2f5a1ddcde2ec8150b0fafec755b9f8bf14a65d6 (diff) | |
download | scala-7e705baa349c3fc00c6ac9a5da60db4121944d5c.tar.gz scala-7e705baa349c3fc00c6ac9a5da60db4121944d5c.tar.bz2 scala-7e705baa349c3fc00c6ac9a5da60db4121944d5c.zip |
Mapped Java exceptions via scala.compat.Platform
Diffstat (limited to 'src/library/scala/collection/mutable/MutableList.scala')
-rw-r--r-- | src/library/scala/collection/mutable/MutableList.scala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/library/scala/collection/mutable/MutableList.scala b/src/library/scala/collection/mutable/MutableList.scala index 6e5059d4a5..f0349f584a 100644 --- a/src/library/scala/collection/mutable/MutableList.scala +++ b/src/library/scala/collection/mutable/MutableList.scala @@ -11,6 +11,9 @@ package scala.collection.mutable +import compat.Platform.NoSuchElementException + + /** This class is used internally to represent mutable lists. It is the * basis for the implementation of the classes <code>Buffer</code>, * <code>Stack</code>, and <code>Queue</code>. @@ -32,7 +35,7 @@ trait MutableList[A] extends Seq[A] with PartialFunction[Int, A] { * yields an error if the element does not exist. */ def apply(n: Int): A = get(n) match { - case None => throw new java.util.NoSuchElementException("element not found") + case None => throw new NoSuchElementException("element not found") case Some(value) => value } |