Coding gudilines for class and methods javadocs fixed.
Change-Id: I0153e6391c9ec9eacaac65c3989834b6bf5c65bf
diff --git a/src/main/java/org/onosproject/yangutils/translator/tojava/JavaCodeGeneratorUtil.java b/src/main/java/org/onosproject/yangutils/translator/tojava/JavaCodeGeneratorUtil.java
index 3abf5d9..f0e700f 100644
--- a/src/main/java/org/onosproject/yangutils/translator/tojava/JavaCodeGeneratorUtil.java
+++ b/src/main/java/org/onosproject/yangutils/translator/tojava/JavaCodeGeneratorUtil.java
@@ -28,7 +28,7 @@
import static org.onosproject.yangutils.translator.tojava.TraversalType.SIBILING;
/**
- * Implementation of Java code generator based on application schema.
+ * Representation of Java code generator based on application schema.
*/
public final class JavaCodeGeneratorUtil {
@@ -38,7 +38,7 @@
private static YangNode curNode;
/**
- * Default constructor.
+ * Creates a java code generator util object.
*/
private JavaCodeGeneratorUtil() {
}
@@ -57,13 +57,12 @@
*
* @param node current YANG node
*/
-
public static void setCurNode(YangNode node) {
curNode = node;
}
/**
- * Generate Java code files corresponding to the YANG schema.
+ * Generates Java code files corresponding to the YANG schema.
*
* @param rootNode root node of the data model tree
* @param codeGenDir code generation directory
@@ -173,6 +172,7 @@
YangNode parent = node.getParent();
parent.setChild(null);
+
if (node.getNextSibling() != null) {
parent.setChild(node.getNextSibling());
} else if (node.getPreviousSibling() != null) {