sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r1785142 - /sling/trunk/bundles/extensions/models/validation-impl/src/main/java/org/apache/sling/models/validation/impl/ModelValidationImpl.java
Date Thu, 02 Mar 2017 14:15:53 GMT
Author: kwin
Date: Thu Mar  2 14:15:52 2017
New Revision: 1785142

URL: http://svn.apache.org/viewvc?rev=1785142&view=rev
Log:
SLING-6531 fix logic of disabling the validator (was inverted)

Modified:
    sling/trunk/bundles/extensions/models/validation-impl/src/main/java/org/apache/sling/models/validation/impl/ModelValidationImpl.java

Modified: sling/trunk/bundles/extensions/models/validation-impl/src/main/java/org/apache/sling/models/validation/impl/ModelValidationImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/models/validation-impl/src/main/java/org/apache/sling/models/validation/impl/ModelValidationImpl.java?rev=1785142&r1=1785141&r2=1785142&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/models/validation-impl/src/main/java/org/apache/sling/models/validation/impl/ModelValidationImpl.java
(original)
+++ sling/trunk/bundles/extensions/models/validation-impl/src/main/java/org/apache/sling/models/validation/impl/ModelValidationImpl.java
Thu Mar  2 14:15:52 2017
@@ -65,7 +65,7 @@ public class ModelValidationImpl impleme
      * Or a {@link InvalidResourceException} in case the given resource (in the adaptable)
could not be validated through the {@link ModelValidation}.
      */
     public <ModelType> RuntimeException validate(Object adaptable, Class<ModelType>
modelClass, boolean required) throws ValidationException, InvalidModelException {
-        if (!configuration.disabled()) {
+        if (configuration.disabled()) {
             log.debug("Skip validation of model {}, because  validation is disabled through
the OSGi configuration for ModelValidationConfiguration", modelClass);
             return null;
         }



Mime
View raw message