sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r1651756 - /sling/trunk/contrib/extensions/validation/core/src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.java
Date Wed, 14 Jan 2015 18:05:39 GMT
Author: kwin
Date: Wed Jan 14 18:05:39 2015
New Revision: 1651756

URL: http://svn.apache.org/r1651756
Log:
SLING-4310 also get rid of all validator references in the cache if one is unbound

Modified:
    sling/trunk/contrib/extensions/validation/core/src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.java

Modified: sling/trunk/contrib/extensions/validation/core/src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/validation/core/src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.java?rev=1651756&r1=1651755&r2=1651756&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/validation/core/src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.java
(original)
+++ sling/trunk/contrib/extensions/validation/core/src/main/java/org/apache/sling/validation/impl/ValidationServiceImpl.java
Wed Jan 14 18:05:39 2015
@@ -503,6 +503,8 @@ public class ValidationServiceImpl imple
     }
 
     protected void unbindValidator(Validator<?> validator, Map<?, ?> properties)
{
+        // also remove references to all validators in the cache
+        validationModelsCache.clear();
         validators.remove(validator.getClass().getName());
     }
 }



Mime
View raw message