aboutsummaryrefslogtreecommitdiffstats
path: root/common/src
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2018-03-08 07:39:08 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-08 07:39:08 +0000
commita88ba9fbc4033449dc9675b27dcf08305e8a66a1 (patch)
tree59e562035f4d33086605e08ffdc8340d2bf3d8c7 /common/src
parent0079db1779ad6f30660e3df85c0b4c0a32bb757e (diff)
parent36edf1a3688ab064918a8be2edff758130795205 (diff)
Merge "Swap StringBuilder with string where makes sense"
Diffstat (limited to 'common/src')
-rw-r--r--common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java12
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");
}
-
}