incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r755238 - /incubator/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrModifiablePropertyMap.java
Date Tue, 17 Mar 2009 13:38:22 GMT
Author: cziegeler
Date: Tue Mar 17 13:38:21 2009
New Revision: 755238

URL: http://svn.apache.org/viewvc?rev=755238&view=rev
Log:
SLING-890 : Remove property from cache if property is removed. Applied patch from Christian
Keller.

Modified:
    incubator/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrModifiablePropertyMap.java

Modified: incubator/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrModifiablePropertyMap.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrModifiablePropertyMap.java?rev=755238&r1=755237&r2=755238&view=diff
==============================================================================
--- incubator/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrModifiablePropertyMap.java
(original)
+++ incubator/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrModifiablePropertyMap.java
Tue Mar 17 13:38:21 2009
@@ -105,7 +105,7 @@
      */
     public Object remove(Object key) {
         readFully();
-        final Object oldValue = this.get(key);
+        final Object oldValue = this.cache.remove(key);
         if ( this.changedProperties == null ) {
             this.changedProperties = new HashSet<String>();
         }



Mime
View raw message