protected ImmutableChoiceNodeSchemaAwareBuilder(final ChoiceSchemaNode schema) {
this.schema = Preconditions.checkNotNull(schema, "Schema was null");
- super.withNodeIdentifier(new NodeIdentifier(schema.getQName()));
+ super.withNodeIdentifier(NodeIdentifier.create(schema.getQName()));
}
@Override
@Override
public DataContainerNodeBuilder<NodeIdentifier, ChoiceNode> withChild(final DataContainerChild<?, ?> child) {
- if(validator == null) {
+ if (validator == null) {
Optional<ChoiceCaseNode> detectedCaseOpt = SchemaUtils.detectCase(schema, child);
DataValidationException.checkLegalChild(detectedCaseOpt.isPresent(), child.getIdentifier(), schema);
validator = new DataNodeContainerValidator(detectedCaseOpt.get());