[jboss-svn-commits] JBoss Common SVN: r2932 - common-core/trunk/src/main/java/org/jboss/util/collection.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat Nov 1 08:02:00 EDT 2008


Author: alesj
Date: 2008-11-01 08:02:00 -0400 (Sat, 01 Nov 2008)
New Revision: 2932

Modified:
   common-core/trunk/src/main/java/org/jboss/util/collection/ReferenceValueHashMap.java
   common-core/trunk/src/main/java/org/jboss/util/collection/SoftValueHashMap.java
   common-core/trunk/src/main/java/org/jboss/util/collection/ValueRef.java
Log:
javadocs

Modified: common-core/trunk/src/main/java/org/jboss/util/collection/ReferenceValueHashMap.java
===================================================================
--- common-core/trunk/src/main/java/org/jboss/util/collection/ReferenceValueHashMap.java	2008-11-01 11:58:22 UTC (rev 2931)
+++ common-core/trunk/src/main/java/org/jboss/util/collection/ReferenceValueHashMap.java	2008-11-01 12:02:00 UTC (rev 2932)
@@ -28,15 +28,12 @@
 import java.util.Iterator;
 import java.util.Map;
 import java.util.Set;
-import java.io.Serializable;
 
 
 /**
  * This Map will remove entries when the value in the map has been
  * cleaned from garbage collection
  *
- * ReferenceMap is serializable if K and V are serializable.
- *
  * @param <K> the key type
  * @param <V> the value type
  * @author  <a href="mailto:bill at jboss.org">Bill Burke</a>
@@ -48,7 +45,7 @@
    /** Hash table mapping keys to ref values */
    private Map<K, ValueRef<K, V>> hash;
 
-   /** Reference queue for cleared WeakKeys */
+   /** Reference queue for cleared RefKeys */
    private ReferenceQueue<V> queue = new ReferenceQueue<V>();
 
    protected ReferenceValueHashMap(int initialCapacity, float loadFactor)

Modified: common-core/trunk/src/main/java/org/jboss/util/collection/SoftValueHashMap.java
===================================================================
--- common-core/trunk/src/main/java/org/jboss/util/collection/SoftValueHashMap.java	2008-11-01 11:58:22 UTC (rev 2931)
+++ common-core/trunk/src/main/java/org/jboss/util/collection/SoftValueHashMap.java	2008-11-01 12:02:00 UTC (rev 2932)
@@ -106,7 +106,7 @@
       public K key;
 
       /**
-       * Safely create a new WeakValueRef
+       * Safely create a new SoftValueRef
        *
        * @param <K> the key type
        * @param <V> the value type
@@ -124,7 +124,7 @@
       }
 
       /**
-       * Create a new WeakValueRef.
+       * Create a new SoftValueRef.
        *
        * @param key the key
        * @param val the value

Modified: common-core/trunk/src/main/java/org/jboss/util/collection/ValueRef.java
===================================================================
--- common-core/trunk/src/main/java/org/jboss/util/collection/ValueRef.java	2008-11-01 11:58:22 UTC (rev 2931)
+++ common-core/trunk/src/main/java/org/jboss/util/collection/ValueRef.java	2008-11-01 12:02:00 UTC (rev 2932)
@@ -27,12 +27,10 @@
 /**
  * ValueRef.
  *
- * ValueRef instance is serializable if K and V are serializable.
- *
  * @param <K> the key type
  * @param <V> the value type
  */
-public interface ValueRef<K, V> extends Map.Entry<K, V>, Serializable
+public interface ValueRef<K, V> extends Map.Entry<K, V>
 {
    /**
     * Get underlying value.




More information about the jboss-svn-commits mailing list