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>();
}