From 1da48a45b62879c2bd2904342eeff7e6e568350a Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Tue, 23 Apr 2013 13:55:41 -0700 Subject: Eliminate a pile of -Xlint warnings. Some unused private code, unused imports, and points where an extra pair of parentheses is necessary for scalac to have confidence in our intentions. --- src/library/scala/collection/mutable/HashMap.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/library') diff --git a/src/library/scala/collection/mutable/HashMap.scala b/src/library/scala/collection/mutable/HashMap.scala index 692d6b8d6a..3ec84a17ab 100644 --- a/src/library/scala/collection/mutable/HashMap.scala +++ b/src/library/scala/collection/mutable/HashMap.scala @@ -93,7 +93,7 @@ extends AbstractMap[A, B] def -=(key: A): this.type = { removeEntry(key); this } - def iterator = entriesIterator map {e => (e.key, e.value)} + def iterator = entriesIterator map (e => ((e.key, e.value))) override def foreach[C](f: ((A, B)) => C): Unit = foreachEntry(e => f((e.key, e.value))) -- cgit v1.2.3