* DataNodeIterator is iterator, which walks down whole YANG DataNodeContainer
* and walks all instances of {@link DataSchemaNode} present in subtree.
*
- * Iterator instance is eagerly created, walking happens on initialization.
- *
- * Iteration is not ordered.
- *
+ * <p>
+ * Iterator instance is eagerly created, walking happens on initialization. Iteration is not ordered.
*/
public class DataNodeIterator implements Iterator<DataSchemaNode> {
if (input != null) {
traverse(input);
}
- ContainerSchemaNode output = rpcDefinition.getInput();
- if (input != null) {
+ ContainerSchemaNode output = rpcDefinition.getOutput();
+ if (output != null) {
traverse(output);
}
}