[ONOS-5482][ONOS-5275] Yms Operation requirement Implementation in onos-yang-tools
Change-Id: I463ed105f85ca65a61ff251e5ca062903d465551
diff --git a/generator/src/main/java/org/onosproject/yangutils/utils/io/impl/YangIoUtils.java b/generator/src/main/java/org/onosproject/yangutils/utils/io/impl/YangIoUtils.java
index e1020a1..1e856bf 100644
--- a/generator/src/main/java/org/onosproject/yangutils/utils/io/impl/YangIoUtils.java
+++ b/generator/src/main/java/org/onosproject/yangutils/utils/io/impl/YangIoUtils.java
@@ -138,7 +138,7 @@
bufferedWriter.write(getJavaDoc(PACKAGE_INFO, classInfo, isChildNode,
null));
String pkg = PACKAGE + SPACE + pack + SEMI_COLON;
- if (pkg.length() > LINE_SIZE) {
+ if (pkg.length() >= LINE_SIZE) {
pkg = processModifications(pkg, LINE_SIZE);
}
bufferedWriter.write(pkg);
@@ -361,7 +361,7 @@
String line = bufferReader.readLine();
while (line != null) {
- if (line.length() > LINE_SIZE) {
+ if (line.length() >= LINE_SIZE) {
line = processModifications(line, LINE_SIZE);
}
stringBuilder.append(line);
@@ -564,7 +564,7 @@
String temp;
for (String str : array) {
if (!str.contains(OPEN_CURLY_BRACKET)) {
- if (str.length() > SUB_LINE_SIZE) {
+ if (str.length() >= SUB_LINE_SIZE) {
count = getSplitString(str, newArray, count);
} else {
newArray.add(str);