diff options
Diffstat (limited to 'src/library/scala/collection/immutable/Queue.scala')
-rw-r--r-- | src/library/scala/collection/immutable/Queue.scala | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/library/scala/collection/immutable/Queue.scala b/src/library/scala/collection/immutable/Queue.scala index e0a2387ea4..f63545cbe7 100644 --- a/src/library/scala/collection/immutable/Queue.scala +++ b/src/library/scala/collection/immutable/Queue.scala @@ -68,11 +68,10 @@ extends immutable.Sequence[A] /** Creates a new queue with element added at the end * of the old queue. * - * @deprecated Use the method <code>enqueue</code> from now on. - * * @param elem the element to insert */ - @deprecated def +[B >: A](elem: B) = enqueue(elem) + @deprecated("Use the method <code>enqueue</code> from now on.") + def +[B >: A](elem: B) = enqueue(elem) /** Creates a new queue with element added at the end * of the old queue. @@ -87,11 +86,10 @@ extends immutable.Sequence[A] * The elements are prepended in the order they * are given out by the iterator. * - * @deprecated Use the method <code>enqueue</code> from now on. - * * @param iter an iterable object */ - @deprecated def +[B >: A](iter: Iterable[B]) = enqueue(iter) + @deprecated("Use the method <code>enqueue</code> from now on.") + def +[B >: A](iter: Iterable[B]) = enqueue(iter) /** Returns a new queue with all elements provided by * an <code>Iterable</code> object added at the end of |