Minor changes for Json Serializer
Change-Id: I6adfb850c3f043c5463943931bf68dab480e6701
diff --git a/serializers/json/pom.xml b/serializers/json/pom.xml
index b8ce21e..830ecc2 100644
--- a/serializers/json/pom.xml
+++ b/serializers/json/pom.xml
@@ -81,10 +81,24 @@
</executions>
</plugin>
<plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <version>3.2.0</version>
- <extensions>true</extensions>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.8</version>
+ <executions>
+ <execution>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <target>
+ <delete>
+ <fileset dir="${project.build.outputDirectory}/org/onosproject/yang/gen" includes="**/*"/>
+ </delete>
+ </target>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>
diff --git a/serializers/json/src/main/java/org/onosproject/yang/serializers/json/DataNodeJsonVisitor.java b/serializers/json/src/main/java/org/onosproject/yang/serializers/json/DataNodeJsonVisitor.java
index ecc3177..cc0e2ee 100644
--- a/serializers/json/src/main/java/org/onosproject/yang/serializers/json/DataNodeJsonVisitor.java
+++ b/serializers/json/src/main/java/org/onosproject/yang/serializers/json/DataNodeJsonVisitor.java
@@ -34,7 +34,7 @@
private JsonBuilder jsonBuilder;
/**
- * Constructor.
+ * Creates an instance of data node JSON visitor.
*/
public DataNodeJsonVisitor(JsonBuilder jb) {
jsonBuilder = jb;
diff --git a/serializers/json/src/main/java/org/onosproject/yang/serializers/json/DefaultJsonWalker.java b/serializers/json/src/main/java/org/onosproject/yang/serializers/json/DefaultJsonWalker.java
index 6110cb7..3c2c4b4 100644
--- a/serializers/json/src/main/java/org/onosproject/yang/serializers/json/DefaultJsonWalker.java
+++ b/serializers/json/src/main/java/org/onosproject/yang/serializers/json/DefaultJsonWalker.java
@@ -40,7 +40,7 @@
private DataNode.Builder dataNodeBuilder;
/**
- * Constructor.
+ * Creates an instance of JSON object node walker.
*/
public DefaultJsonWalker(DataNode.Builder db) {
dataNodeBuilder = db;
@@ -124,10 +124,8 @@
String nodeName = getLatterSegment(fieldName, COLON);
String namespace = getPreSegment(fieldName, COLON);
dataNodeBuilder = SerializerHelper.addDataNode(dataNodeBuilder,
- nodeName,
- namespace,
- value,
- nodeType);
+ nodeName, namespace,
+ value, nodeType);
}
private void addNoneLeafDataNode(String fieldName, DataNode.Type nodeType) {