Author: michiel
Date: 2010-04-02 21:35:10 +0200 (Fri, 02 Apr 2010)
New Revision: 41752

Modified:
   mmbase/trunk/utils/src/main/java/org/mmbase/util/Entry.java
Log:


Modified: mmbase/trunk/utils/src/main/java/org/mmbase/util/Entry.java
===================================================================
--- mmbase/trunk/utils/src/main/java/org/mmbase/util/Entry.java 2010-04-02 
19:14:25 UTC (rev 41751)
+++ mmbase/trunk/utils/src/main/java/org/mmbase/util/Entry.java 2010-04-02 
19:35:10 UTC (rev 41752)
@@ -12,15 +12,16 @@
 
 /**
  * Represents a pair of values ('key' and a 'value'). It is a straight-forward 
implementation of
- * {...@link java.util.Map.Entry}, and can be used as a utility for Map 
implementations. 
+ * {...@link java.util.Map.Entry}, and can be used as a utility for Map 
implementations.
  *
  * @since MMBase-1.8
+ * @todo Java 6 provides this as AbstractMap.SimpleEntry
  * @version $Id$
  * @author Michiel Meeuwissen
  */
 public final class Entry<K, V> implements Map.Entry<K, V>, 
PublicCloneable<Entry<K, V>>, java.io.Serializable {
     private static final long serialVersionUID = 0L;
-    private final K key; 
+    private final K key;
     private V value;
 
      /**
@@ -31,7 +32,7 @@
         key = k ;
         value = v;
     }
-    public Entry(Map.Entry<K, V> e) {
+    public Entry(Map.Entry<? extends K, ? extends V> e) {
         key = e.getKey();
         value = e.getValue();
     }

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to