summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/mutable/PriorityQueue.scala
diff options
context:
space:
mode:
authorAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2011-04-13 16:31:58 +0000
committerAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2011-04-13 16:31:58 +0000
commitaf358131de08e41bdb3d2bba46f309f0c03ab03b (patch)
tree3f074482df72a558be5a32f23a3cb58d509a7156 /src/library/scala/collection/mutable/PriorityQueue.scala
parent3de96153e5bfbde16dcc89bfbd71ff6e8cf1f6c6 (diff)
downloadscala-af358131de08e41bdb3d2bba46f309f0c03ab03b.tar.gz
scala-af358131de08e41bdb3d2bba46f309f0c03ab03b.tar.bz2
scala-af358131de08e41bdb3d2bba46f309f0c03ab03b.zip
Fixes and closes #4405.
No review.
Diffstat (limited to 'src/library/scala/collection/mutable/PriorityQueue.scala')
-rw-r--r--src/library/scala/collection/mutable/PriorityQueue.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/mutable/PriorityQueue.scala b/src/library/scala/collection/mutable/PriorityQueue.scala
index 5aa7a3794c..1f7e4e7879 100644
--- a/src/library/scala/collection/mutable/PriorityQueue.scala
+++ b/src/library/scala/collection/mutable/PriorityQueue.scala
@@ -163,7 +163,7 @@ class PriorityQueue[A](implicit val ord: Ordering[A])
*
* @return the element with the highest priority.
*/
- def max: A = if (resarr.p_size0 > 1) toA(resarr.p_array(1)) else throw new NoSuchElementException("queue is empty")
+ override def head: A = if (resarr.p_size0 > 1) toA(resarr.p_array(1)) else throw new NoSuchElementException("queue is empty")
/** Removes all elements from the queue. After this operation is completed,
* the queue will be empty.