diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2018-03-08 07:39:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-03-08 07:39:08 +0000 |
commit | a88ba9fbc4033449dc9675b27dcf08305e8a66a1 (patch) | |
tree | 59e562035f4d33086605e08ffdc8340d2bf3d8c7 /common | |
parent | 0079db1779ad6f30660e3df85c0b4c0a32bb757e (diff) | |
parent | 36edf1a3688ab064918a8be2edff758130795205 (diff) |
Merge "Swap StringBuilder with string where makes sense"
Diffstat (limited to 'common')
-rw-r--r-- | common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java b/common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java index 8da155fe08..ec0b54a14f 100644 --- a/common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java +++ b/common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java @@ -159,15 +159,9 @@ public class MsoJsonProperties extends AbstractMsoProperties { @Override public String toString() { - StringBuilder response = new StringBuilder(); - response.append("Config file ").append(propertiesFileName).append("(Timer:").append(automaticRefreshInMinutes) - .append("mins):").append(System.getProperty("line.separator")); - response.append(this.jsonRootNode.toString()); - response.append(System.getProperty("line.separator")); - response.append(System.getProperty("line.separator")); - return response.toString(); - + return "Config file " + propertiesFileName + "(Timer:" + automaticRefreshInMinutes + "mins):" + System + .getProperty("line.separator") + this.jsonRootNode.toString() + System.getProperty("line.separator") + + System.getProperty("line.separator"); } - } |