Skip to content

Commit c1a2a18

Browse files
authored
Merge pull request scala/scala#7231 from retronym/merge/2.12.x-to-2.13.x-20180919
Merge 2.12.x to 2.13.x [ci: last-only]
2 parents c870162 + cd2d1ce commit c1a2a18

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

library/src/scala/UninitializedError.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ package scala
1515
* @author Martin Odersky
1616
* @since 2.5
1717
*/
18+
// TODO: remove in 2.14
19+
@deprecated("will be removed in a future release", since = "2.12.7")
1820
final class UninitializedError extends RuntimeException("uninitialized value")

library/src/scala/collection/mutable/PriorityQueue.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ import scala.math.Ordering
1616
* To prioritize elements of type A there must be an implicit
1717
* Ordering[A] available at creation.
1818
*
19+
* If multiple elements have the same priority in the ordering of this
20+
* PriorityQueue, no guarantees are made regarding the order in which elements
21+
* are returned by `dequeue` or `dequeueAll`. In particular, that means this
22+
* class does not guarantee first in first out behaviour that may be
23+
* incorrectly inferred from the Queue part of the name of this class.
24+
*
1925
* Only the `dequeue` and `dequeueAll` methods will return elements in priority
2026
* order (while removing elements from the heap). Standard collection methods
2127
* including `drop`, `iterator`, and `toString` will remove or traverse the heap

0 commit comments

Comments
 (0)