summaryrefslogtreecommitdiffstats
path: root/prh-commons
diff options
context:
space:
mode:
authorpwielebs <piotr.wielebski@nokia.com>2018-09-04 09:38:35 +0200
committerpwielebs <piotr.wielebski@nokia.com>2018-09-04 09:38:35 +0200
commit3737046ff3c8e032257b257912778403fc058ee0 (patch)
tree0a0b5ea8c88f822ba8e94b6904b0ef9e77e6614e /prh-commons
parent83df6e1df5ec20627c85af9ba2f49036dd58f328 (diff)
Clear warnings in sysout Fix:
*Checkstyle violations *Sonar Issues *FindBugs Issues Change-Id: Ie634fa6644cdbdb1f952826a75c6a4ffeabe0cbf Issue-ID: DCAEGEN2-606 Signed-off-by: pwielebs <piotr.wielebski@nokia.com>
Diffstat (limited to 'prh-commons')
-rw-r--r--prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/logging/MdcVariables.java (renamed from prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/logging/MDCVariables.java)11
1 files changed, 6 insertions, 5 deletions
diff --git a/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/logging/MDCVariables.java b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/logging/MdcVariables.java
index 33d0c87d..c6fc4592 100644
--- a/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/logging/MDCVariables.java
+++ b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/logging/MdcVariables.java
@@ -23,7 +23,7 @@ package org.onap.dcaegen2.services.prh.model.logging;
import java.util.Map;
import org.slf4j.MDC;
-public final class MDCVariables {
+public final class MdcVariables {
public static final String X_ONAP_REQUEST_ID = "X-ONAP-RequestID";
public static final String X_INVOCATION_ID = "X-InvocationID";
@@ -33,11 +33,12 @@ public final class MDCVariables {
public static final String RESPONSE_CODE = "ResponseCode";
public static final String SERVICE_NAME = "ServiceName";
- public static void setMdcContextMap(Map<String,String> mdcContextMap) {
- if(mdcContextMap != null)
- MDC.setContextMap(mdcContextMap);
+ private MdcVariables() {
}
- private MDCVariables() {
+ public static void setMdcContextMap(Map<String, String> mdcContextMap) {
+ if (mdcContextMap != null) {
+ MDC.setContextMap(mdcContextMap);
+ }
}
}