incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r689810 - /incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/EventPropertiesMap.java
Date Thu, 28 Aug 2008 13:25:08 GMT
Author: cziegeler
Date: Thu Aug 28 06:25:08 2008
New Revision: 689810

URL: http://svn.apache.org/viewvc?rev=689810&view=rev
Log:
Make event property map modifiable

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=689810&r1=689809&r2=689810&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
Thu Aug 28 06:25:08 2008
@@ -19,7 +19,6 @@
 package org.apache.sling.event;
 
 import java.util.Collection;
-import java.util.Collections;
 import java.util.Dictionary;
 import java.util.Enumeration;
 import java.util.HashMap;
@@ -42,7 +41,8 @@
 
     /**
      * Construct a new map out of an event object.
-     * The resulting map is unmodifiable.
+     * The resulting map is modifiable. But any modification has
+     * no influence on the original properties of the event!
      * @param event The event object.
      */
     public EventPropertiesMap(final Event event) {
@@ -53,7 +53,7 @@
                 props.put(key, event.getProperty(key));
             }
         }
-        this.delegatee = Collections.unmodifiableMap(props);
+        this.delegatee = props;
     }
 
     /**



Mime
View raw message