commit | de4ffab5e34064996e07071a97c909588eab999d | [log] [tgz] |
---|---|---|
author | janani b <janani.b@huawei.com> | Fri Apr 15 16:18:30 2016 +0530 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri Apr 15 14:57:20 2016 +0000 |
tree | bac045a7caa8290b3ebe83d9e122e769b93f8cb1 | |
parent | d4deb0619a3068a2f31e43b9db20909ba1a66e0d [diff] [blame] |
[4266],[4267],[4268] Defect fix of special characters support for attributes Change-Id: Ibf79749eb667627a592fcc7325021a32e73e11b4
diff --git a/utils/yangutils/src/main/java/org/onosproject/yangutils/translator/tojava/utils/MethodsGenerator.java b/utils/yangutils/src/main/java/org/onosproject/yangutils/translator/tojava/utils/MethodsGenerator.java index 6270cd2..90c122b 100644 --- a/utils/yangutils/src/main/java/org/onosproject/yangutils/translator/tojava/utils/MethodsGenerator.java +++ b/utils/yangutils/src/main/java/org/onosproject/yangutils/translator/tojava/utils/MethodsGenerator.java
@@ -447,9 +447,9 @@ String attributeName = getSmallCase(attr.getAttributeName()); - String constructor = EIGHT_SPACE_INDENTATION + THIS + PERIOD + getCamelCase(attributeName) + SPACE + EQUAL + String constructor = EIGHT_SPACE_INDENTATION + THIS + PERIOD + getCamelCase(attributeName, null) + SPACE + EQUAL + SPACE + BUILDER.toLowerCase() + OBJECT + PERIOD + GET_METHOD_PREFIX - + getCaptialCase(getCamelCase(attributeName)) + OPEN_PARENTHESIS + CLOSE_PARENTHESIS + SEMI_COLAN + + getCaptialCase(getCamelCase(attributeName, null)) + OPEN_PARENTHESIS + CLOSE_PARENTHESIS + SEMI_COLAN + NEW_LINE; return constructor;