From fde2515098be8db3eae61e1aa510a747dd660e10 Mon Sep 17 00:00:00 2001 From: surya-huawei Date: Mon, 25 Sep 2017 14:56:04 +0530 Subject: 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 --- sli/common/src/main/java/org/onap/ccsdk/sli/core/sli/MetricLogger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- cgit 1.2.3-korg