aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsurya-huawei <a.u.surya@huawei.com>2017-09-25 14:56:04 +0530
committerSURYA A U <a.u.surya@huawei.com>2017-09-27 03:09:34 +0000
commitfde2515098be8db3eae61e1aa510a747dd660e10 (patch)
tree561f09ab844e080d95b9a277bcd83d495e949467
parentea256b21bd4f2565ca9ae30e737748e40aa21f23 (diff)
Use Long.toString instead
Major sonar issue in sli/core module *Using static method to reduce memory and cycles Issue-Id: CCSDK-87 Change-Id: Iaf255892a4bd698934f865a707e54f8e740370ab Signed-off-by: surya-huawei <a.u.surya@huawei.com>
-rw-r--r--sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/MetricLogger.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/MetricLogger.java b/sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/MetricLogger.java
index 0d0faee8..0f6ae673 100644
--- a/sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/MetricLogger.java
+++ b/sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/MetricLogger.java
@@ -209,7 +209,7 @@ public class MetricLogger {
}
private void setElapsedTime(long elapsedTime) {
- MDC.put(ELAPSED_TIME, ""+elapsedTime);
+ MDC.put(ELAPSED_TIME, Long.toString(elapsedTime));
}
public String getServer() {