} else {
dataNode = findDataSchemaNodeForRelativeXPath(schemaContext, module, parentNode, xpath);
}
- Preconditions.checkArgument(dataNode != null, "Failed to find leafref target: %s in module %s (%s) at %s",
- strXPath, this.getParentModule(parentNode).getName(),
- parentNode.getQName().getModule(), this.getParentModule(parentNode).getModuleSourcePath());
+ Preconditions.checkArgument(dataNode != null, "Failed to find leafref target: %s in module %s (%s)",
+ strXPath, this.getParentModule(parentNode).getName(), parentNode.getQName().getModule());
if (leafContainsEnumDefinition(dataNode)) {
returnType = referencedTypes.get(dataNode.getPath());
returnType = Types.typeForClass(Object.class);
}
}
- Preconditions.checkArgument(returnType != null, "Failed to find leafref target: %s in module %s (%s) at %s",
- strXPath, this.getParentModule(parentNode).getName(), parentNode.getQName().getModule(), this
- .getParentModule(parentNode).getModuleSourcePath());
+ Preconditions.checkArgument(returnType != null, "Failed to find leafref target: %s in module %s (%s)",
+ strXPath, this.getParentModule(parentNode).getName(), parentNode.getQName().getModule(), this);
return returnType;
}
private static final Comparator<Bit> BIT_NAME_COMPARATOR = new Comparator<Bit>() {
@Override
- public int compare(final Bit o1, final Bit o2) {
+ public int compare(Bit o1, Bit o2) {
return o1.getName().compareTo(o2.getName());
}
};
List<Module> modulesList = new ArrayList<>(modules);
Collections.sort(modulesList, new Comparator<Module>() {
@Override
- public int compare(final Module o1, final Module o2) {
+ public int compare(Module o1, Module o2) {
return o1.getRevision().compareTo(o2.getRevision());
}
});