incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r726671 - /incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventPropertiesMap.java
Date Mon, 15 Dec 2008 10:24:41 GMT
Author: fmeschbe
Date: Mon Dec 15 02:24:40 2008
New Revision: 726671

URL: http://svn.apache.org/viewvc?rev=726671&view=rev
Log:
Use Java Runtime Collections class to get an Enumeration over a collection
instead of Commons Collections.

Modified:
    incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventPropertiesMap.java

Modified: incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventPropertiesMap.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventPropertiesMap.java?rev=726671&r1=726670&r2=726671&view=diff
==============================================================================
--- incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventPropertiesMap.java
(original)
+++ incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventPropertiesMap.java
Mon Dec 15 02:24:40 2008
@@ -20,13 +20,13 @@
 
 import java.io.Serializable;
 import java.util.Collection;
+import java.util.Collections;
 import java.util.Dictionary;
 import java.util.Enumeration;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.Set;
 
-import org.apache.commons.collections.iterators.IteratorEnumeration;
 import org.osgi.service.event.Event;
 
 /**
@@ -173,17 +173,15 @@
     /**
      * @see java.util.Dictionary#elements()
      */
-    @SuppressWarnings("unchecked")
     public Enumeration<Object> elements() {
-        return new IteratorEnumeration(this.values().iterator());
+        return Collections.enumeration(this.values());
     }
 
     /**
      * @see java.util.Dictionary#keys()
      */
-    @SuppressWarnings("unchecked")
     public Enumeration<String> keys() {
-        return new IteratorEnumeration(this.keySet().iterator());
+        return Collections.enumeration(this.keySet());
     }
 
     /**



Mime
View raw message