summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2010-12-31 12:37:19 +0000
committerIulian Dragos <jaguarul@gmail.com>2010-12-31 12:37:19 +0000
commit0cdd234b1a434b6d7fa4a282f5ca3ee4f2e2bd21 (patch)
tree4c571af5a912a7558e0968599bd568b73a5fab52 /src/library
parent31d2746757a6385f6935eae6ffaf59bb98352488 (diff)
downloadscala-0cdd234b1a434b6d7fa4a282f5ca3ee4f2e2bd21.tar.gz
scala-0cdd234b1a434b6d7fa4a282f5ca3ee4f2e2bd21.tar.bz2
scala-0cdd234b1a434b6d7fa4a282f5ca3ee4f2e2bd21.zip
Changed the cache in the jvm backend to use a W...
Changed the cache in the jvm backend to use a WeakHashMap for names. Added some details to mutable.WeakHashMap scaladoc.
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/collection/mutable/WeakHashMap.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library/scala/collection/mutable/WeakHashMap.scala b/src/library/scala/collection/mutable/WeakHashMap.scala
index 75bc317f4a..8ae5b0ac78 100644
--- a/src/library/scala/collection/mutable/WeakHashMap.scala
+++ b/src/library/scala/collection/mutable/WeakHashMap.scala
@@ -15,7 +15,9 @@ import JavaConversions._
import generic._
-/** A hash map with references to entries which are weakly reachable.
+/** A hash map with references to entries which are weakly reachable. Entries are
+ * removed from this map when the key is no longer (strongly) referenced. This class wraps
+ * `java.util.WeakHashMap`.
*
* @tparam A type of keys contained in this map
* @tparam B type of values associated with the keys