From 5c93b25a22f19f157d5088595655ac818744a42b Mon Sep 17 00:00:00 2001 From: Vijay VK Date: Thu, 8 Mar 2018 02:15:28 +0000 Subject: sonar complaince updates Change-Id: I3f1bee6b9ff072528246186a73ee5133f9a918aa Signed-off-by: VENKATESH KUMAR Issue-ID: DCAEGEN2-388 --- src/main/java/org/onap/dcae/commonFunction/ConfigProcessors.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/org/onap/dcae/commonFunction/ConfigProcessors.java b/src/main/java/org/onap/dcae/commonFunction/ConfigProcessors.java index 4fb5adf0..40fecd02 100644 --- a/src/main/java/org/onap/dcae/commonFunction/ConfigProcessors.java +++ b/src/main/java/org/onap/dcae/commonFunction/ConfigProcessors.java @@ -71,7 +71,7 @@ public class ConfigProcessors { - public String evaluate(String str) { + private String evaluate(String str) { String value = str; if (str.startsWith("$")) { value = (String) getEventObjectVal(str.substring(1)); @@ -137,7 +137,7 @@ public class ConfigProcessors { } - public void renameArrayInArray(JSONObject J) // map + private void renameArrayInArray(JSONObject J) // map { log.info("renameArrayInArray"); final String field = J.getString(FIELD); @@ -183,7 +183,7 @@ public class ConfigProcessors { mapAttribute(J); } - public String performOperation(String operation, String value) { + private String performOperation(String operation, String value) { log.info("performOperation"); if (operation != null) { if (operation.equals("convertMBtoKB")) { @@ -220,7 +220,7 @@ public class ConfigProcessors { } - public void mapToJArray(JSONObject J) { + private void mapToJArray(JSONObject J) { log.info("mapToJArray"); String field = J.getString(FIELD); String oldField = J.getString(OLD_FIELD); @@ -549,4 +549,3 @@ public class ConfigProcessors { private JSONObject event = new JSONObject(); } - -- cgit 1.2.3-korg