Fix reference to wrong constant
"default" in this context is switch case not attribute name prefix/suffix
Change-Id: I1bedf12fafdbc1442c267e9bccee32bf161daee3
diff --git a/compiler/base/translator/src/main/java/org/onosproject/yang/compiler/translator/tojava/utils/MethodsGenerator.java b/compiler/base/translator/src/main/java/org/onosproject/yang/compiler/translator/tojava/utils/MethodsGenerator.java
index 5267699..5f3b6cb 100644
--- a/compiler/base/translator/src/main/java/org/onosproject/yang/compiler/translator/tojava/utils/MethodsGenerator.java
+++ b/compiler/base/translator/src/main/java/org/onosproject/yang/compiler/translator/tojava/utils/MethodsGenerator.java
@@ -117,7 +117,6 @@
import static org.onosproject.yang.compiler.utils.UtilConstants.COMMA;
import static org.onosproject.yang.compiler.utils.UtilConstants.COMPARE_TO;
import static org.onosproject.yang.compiler.utils.UtilConstants.DECODE;
-import static org.onosproject.yang.compiler.utils.UtilConstants.DEFAULT;
import static org.onosproject.yang.compiler.utils.UtilConstants.DIAMOND_CLOSE_BRACKET;
import static org.onosproject.yang.compiler.utils.UtilConstants.DIAMOND_OPEN_BRACKET;
import static org.onosproject.yang.compiler.utils.UtilConstants.EIGHT_SPACE_INDENTATION;
@@ -1263,7 +1262,7 @@
return null;
}
- String method = TWELVE_SPACE_INDENTATION + DEFAULT + SPACE + COLON +
+ String method = TWELVE_SPACE_INDENTATION + "default" + SPACE + COLON +
NEW_LINE;
builder.append(method)
.append(getExceptionThrowString(SIXTEEN_SPACE_INDENTATION))