removed code duplication in translator, and addressed review comments

Change-Id: I27767a81c4bf279c80d2b98192f75f8f507b4457
diff --git a/src/main/java/org/onosproject/yangutils/translator/CodeGenerator.java b/src/main/java/org/onosproject/yangutils/translator/CodeGenerator.java
index ec5a0e5..82e15a6 100644
--- a/src/main/java/org/onosproject/yangutils/translator/CodeGenerator.java
+++ b/src/main/java/org/onosproject/yangutils/translator/CodeGenerator.java
@@ -26,14 +26,14 @@
     /**
      * Traverse the schema of application and generate corresponding code.
      *
-     * @throws IOException when fails to translate the data model tree.
+     * @throws IOException when fails to translate the data model tree
      */
     void generateJavaCodeEntry() throws IOException;
 
     /**
      * Traverse the schema of application and generate corresponding code.
      *
-     * @throws IOException when fails to generate java code.
+     * @throws IOException when fails to generate java code
      */
     void generateJavaCodeExit() throws IOException;