diff options
author | Martin Odersky <odersky@gmail.com> | 2007-03-05 14:21:28 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2007-03-05 14:21:28 +0000 |
commit | 2c11ab6c75c4389a35d029aeb69d5d437e83a85a (patch) | |
tree | 6353eaeeb6e075f6e6844c87f61f7ab63cf71593 /src/library/scala/collection/mutable/Queue.scala | |
parent | 0d03cad11528942ccdd8917b6d106b1dbb9afa79 (diff) | |
download | scala-2c11ab6c75c4389a35d029aeb69d5d437e83a85a.tar.gz scala-2c11ab6c75c4389a35d029aeb69d5d437e83a85a.tar.bz2 scala-2c11ab6c75c4389a35d029aeb69d5d437e83a85a.zip |
fixed bugs 948/971;
added () to parameterless methods with side-effects.
Diffstat (limited to 'src/library/scala/collection/mutable/Queue.scala')
-rw-r--r-- | src/library/scala/collection/mutable/Queue.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/mutable/Queue.scala b/src/library/scala/collection/mutable/Queue.scala index 9e610ac392..ccb829171b 100644 --- a/src/library/scala/collection/mutable/Queue.scala +++ b/src/library/scala/collection/mutable/Queue.scala @@ -63,7 +63,7 @@ class Queue[A] extends MutableList[A] { * @throws Predef.NoSuchElementException * @return the first element of the queue. */ - def dequeue: A = + def dequeue(): A = if (first eq null) throw new NoSuchElementException("queue empty") else { |