Update of /var/cvs/src/org/mmbase/util
In directory james.mmbase.org:/tmp/cvs-serv29461

Modified Files:
        Entry.java 
Log Message:
key can be final because Entry is final and we implement clone by new Entry. 
Empty constructor is not needed by serializable at all, AFAIK


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util


Index: Entry.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/util/Entry.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- Entry.java  24 Feb 2007 21:57:50 -0000      1.7
+++ Entry.java  27 Aug 2008 09:06:45 -0000      1.8
@@ -15,18 +15,14 @@
  * [EMAIL PROTECTED] java.util.Map.Entry}, and can be used as a utility for 
Map implementations. 
  *
  * @since MMBase-1.8
- * @version $Id: Entry.java,v 1.7 2007/02/24 21:57:50 nklasens Exp $
+ * @version $Id: Entry.java,v 1.8 2008/08/27 09:06:45 michiel Exp $
  * @author Michiel Meeuwissen
  */
 public final class Entry<K, V> implements Map.Entry<K, V>, PublicCloneable, 
java.io.Serializable {
 
-    private K key; // cannot be final because of cloneable/serializable, but 
logically, it could.
+    private final K key; 
     private V value;
 
-    protected Entry() {
-        // serializable
-    }
-
     /**
      * @param k The key of this Map.Entry
      * @param v The value of this Map.Entry
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to