Skip to content

Commit

Permalink
Set default value for extra validations in prisms to FALSE.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Oct 28, 2016
1 parent e96f4e7 commit 199b8e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Expand Up @@ -27,6 +27,8 @@
import java.util.Collection;

/**
* TODO rename to PrismValue and rename existing PrismValue to PrismValueImpl
*
* @author semancik
* @author mederly
*/
Expand Down
Expand Up @@ -665,8 +665,8 @@ public boolean isEmpty() {

@Override
protected void checkDefinition(PrismContainerDefinition<C> def) {
if (!(def instanceof PrismContainerDefinition<?>)) {
throw new IllegalArgumentException("Definition "+def+" cannot be applied to container "+this);
if (def == null) {
throw new IllegalArgumentException("Null definition cannot be applied to container "+this);
}
}

Expand Down
Expand Up @@ -52,7 +52,7 @@ public class PrismContextImpl implements PrismContext {
private static final Trace LOGGER = TraceManager.getTrace(PrismContextImpl.class);

private static boolean allowSchemalessSerialization = true;
private static boolean extraValidation = true; // TODO replace by something serious
private static boolean extraValidation = false; // TODO replace by something serious

@NotNull private final SchemaRegistryImpl schemaRegistry;
@NotNull private final LexicalProcessorRegistry lexicalProcessorRegistry;
Expand Down

0 comments on commit 199b8e5

Please sign in to comment.