aboutsummaryrefslogtreecommitdiffstats
path: root/asdc-controller/src/main/java/org/openecomp
diff options
context:
space:
mode:
authorMunir Ahmad <munir.ahmad@bell.ca>2018-02-24 13:12:56 -0500
committerMunir Ahmad <munir.ahmad@bell.ca>2018-02-27 00:40:10 +0000
commit40bb7adfbbe26be4e459e269bfd277436deb21cf (patch)
treedda603845f2ffac80079e5b1c9aa8451edbb2db0 /asdc-controller/src/main/java/org/openecomp
parent250de788c5cf40cc8a73c7aad4dc2f482f821768 (diff)
Make use of append instead of string concatenation
Change-Id: I94ad658026f165ba8b5a74352095188a27ee50e5 Issue-ID: SO-437 Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>
Diffstat (limited to 'asdc-controller/src/main/java/org/openecomp')
-rw-r--r--asdc-controller/src/main/java/org/openecomp/mso/asdc/util/ASDCNotificationLogging.java80
1 files changed, 40 insertions, 40 deletions
diff --git a/asdc-controller/src/main/java/org/openecomp/mso/asdc/util/ASDCNotificationLogging.java b/asdc-controller/src/main/java/org/openecomp/mso/asdc/util/ASDCNotificationLogging.java
index a7ba01354d..2080be137c 100644
--- a/asdc-controller/src/main/java/org/openecomp/mso/asdc/util/ASDCNotificationLogging.java
+++ b/asdc-controller/src/main/java/org/openecomp/mso/asdc/util/ASDCNotificationLogging.java
@@ -311,71 +311,71 @@ public class ASDCNotificationLogging {
return "NULL";
}
- StringBuilder buffer = new StringBuilder("VfModuleMetaData:");
- buffer.append(System.lineSeparator());
+ StringBuilder stringBuilder = new StringBuilder("VfModuleMetaData:");
+ stringBuilder.append(System.lineSeparator());
- buffer.append("VfModuleModelName:");
- buffer.append(testNull(moduleMetaData.getVfModuleModelName()));
- buffer.append(System.lineSeparator());
+ stringBuilder.append("VfModuleModelName:");
+ stringBuilder.append(testNull(moduleMetaData.getVfModuleModelName()));
+ stringBuilder.append(System.lineSeparator());
- buffer.append("VfModuleModelVersion:");
- buffer.append(testNull(moduleMetaData.getVfModuleModelVersion()));
- buffer.append(System.lineSeparator());
+ stringBuilder.append("VfModuleModelVersion:");
+ stringBuilder.append(testNull(moduleMetaData.getVfModuleModelVersion()));
+ stringBuilder.append(System.lineSeparator());
- buffer.append("VfModuleModelUUID:");
- buffer.append(testNull(moduleMetaData.getVfModuleModelUUID()));
- buffer.append(System.lineSeparator());
+ stringBuilder.append("VfModuleModelUUID:");
+ stringBuilder.append(testNull(moduleMetaData.getVfModuleModelUUID()));
+ stringBuilder.append(System.lineSeparator());
- buffer.append("VfModuleModelInvariantUUID:");
- buffer.append(testNull(moduleMetaData.getVfModuleModelInvariantUUID()));
- buffer.append(System.lineSeparator());
+ stringBuilder.append("VfModuleModelInvariantUUID:");
+ stringBuilder.append(testNull(moduleMetaData.getVfModuleModelInvariantUUID()));
+ stringBuilder.append(System.lineSeparator());
- buffer.append("VfModuleModelDescription:");
- buffer.append(testNull(moduleMetaData.getVfModuleModelDescription()));
- buffer.append(System.lineSeparator());
+ stringBuilder.append("VfModuleModelDescription:");
+ stringBuilder.append(testNull(moduleMetaData.getVfModuleModelDescription()));
+ stringBuilder.append(System.lineSeparator());
- buffer.append("Artifacts UUID List:");
+ stringBuilder.append("Artifacts UUID List:");
if (moduleMetaData.getArtifacts() != null) {
- buffer.append("{");
+ stringBuilder.append("{");
for (String artifactUUID:moduleMetaData.getArtifacts()) {
- buffer.append(System.lineSeparator());
- buffer.append(testNull(artifactUUID));
- buffer.append(System.lineSeparator());
- buffer.append(",");
+ stringBuilder.append(System.lineSeparator());
+ stringBuilder.append(testNull(artifactUUID));
+ stringBuilder.append(System.lineSeparator());
+ stringBuilder.append(",");
}
- buffer.replace(buffer.length()-1,buffer.length(), System.lineSeparator());
- buffer.append("}");
- buffer.append(System.lineSeparator());
+ stringBuilder.replace(stringBuilder.length()-1,stringBuilder.length(), System.lineSeparator());
+ stringBuilder.append("}");
+ stringBuilder.append(System.lineSeparator());
} else {
- buffer.append("NULL");
+ stringBuilder.append("NULL");
}
if (moduleMetaData.getProperties() != null) {
Map<String, String> vfModuleMap = moduleMetaData.getProperties();
- buffer.append("Properties List:");
- buffer.append("{");
+ stringBuilder.append("Properties List:");
+ stringBuilder.append("{");
for (Map.Entry<String, String> entry : vfModuleMap.entrySet()) {
- buffer.append(System.lineSeparator());
- buffer.append(" " + entry.getKey() + " : " + entry.getValue());
+ stringBuilder.append(System.lineSeparator());
+ stringBuilder.append(" ").append(entry.getKey()).append(" : ").append(entry.getValue());
}
- buffer.replace(buffer.length()-1,buffer.length(), System.lineSeparator());
- buffer.append("}");
- buffer.append(System.lineSeparator());
+ stringBuilder.replace(stringBuilder.length()-1,stringBuilder.length(), System.lineSeparator());
+ stringBuilder.append("}");
+ stringBuilder.append(System.lineSeparator());
} else {
- buffer.append("NULL");
+ stringBuilder.append("NULL");
}
- buffer.append(System.lineSeparator());
+ stringBuilder.append(System.lineSeparator());
- buffer.append("isBase:");
- buffer.append(moduleMetaData.isBase());
- buffer.append(System.lineSeparator());
+ stringBuilder.append("isBase:");
+ stringBuilder.append(moduleMetaData.isBase());
+ stringBuilder.append(System.lineSeparator());
- return buffer.toString();
+ return stringBuilder.toString();
}
private static String testNull(Object object) {