diff options
author | Munir Ahmad <munir.ahmad@bell.ca> | 2018-03-07 19:21:48 -0500 |
---|---|---|
committer | Munir Ahmad <munir.ahmad@bell.ca> | 2018-03-08 02:08:00 +0000 |
commit | 36edf1a3688ab064918a8be2edff758130795205 (patch) | |
tree | 60495d93fd3e29d90aa856d200bc69b8a6feb2fa /common/src/main/java/org/openecomp | |
parent | bcfb7e24ab050bd530e9aa2c9557386a4b9f82f5 (diff) |
Swap StringBuilder with string where makes sense
Change-Id: I3faaa90d97e936b0d86282db5958e1048460ee81
Issue-ID: SO-437
Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>
Diffstat (limited to 'common/src/main/java/org/openecomp')
-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"); } - } |