final Set<QName> childNames = new HashSet<>();
final Set<DataSchemaNode> realChilds = new HashSet<>();
for (final DataSchemaNode child : origSchema.getChildNodes()) {
- final DataSchemaNode dataChildQNname = target.getDataChildByName(child.getQName());
+ final DataSchemaNode dataChildQNname = target.dataChildByName(child.getQName());
final String childLocalName = child.getQName().getLocalName();
if (dataChildQNname == null) {
for (DataSchemaNode dataSchemaNode : target.getChildNodes()) {
@Override
public final ImmutableMap<AugmentationIdentifier, Type> getAvailableAugmentationTypes(
final DataNodeContainer container) {
- final Map<AugmentationIdentifier, Type> identifierToType = new HashMap<>();
if (container instanceof AugmentationTarget) {
+ final Map<AugmentationIdentifier, Type> identifierToType = new HashMap<>();
final BindingRuntimeTypes types = getTypes();
for (final AugmentationSchemaNode augment : ((AugmentationTarget) container).getAvailableAugmentations()) {
// Augmentation must have child nodes if is to be used with Binding classes
}
}
}
+ return ImmutableMap.copyOf(identifierToType);
}
- return ImmutableMap.copyOf(identifierToType);
+ return ImmutableMap.of();
}
@Override