From 2e8400343e7ea7c94e30ab641637b5b7c32c489b Mon Sep 17 00:00:00 2001 From: dinesha Date: Mon, 19 Aug 2019 19:47:00 +0530 Subject: Sonar fix - ChartD3Helper.java - Rename the Variable to match the regular expression Fixed sonar issues accross the file Issue-ID: PORTAL-686 Change-Id: I5079aafd0855291fe5c35d9abf8d98f31f1c8235 Signed-off-by: dinesha --- .../portalsdk/analytics/model/runtime/ChartD3Helper.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ecomp-sdk') diff --git a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/runtime/ChartD3Helper.java b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/runtime/ChartD3Helper.java index 721d46ab..19b7b138 100644 --- a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/runtime/ChartD3Helper.java +++ b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/runtime/ChartD3Helper.java @@ -2840,28 +2840,28 @@ public class ChartD3Helper { dataStr.append("{"); dataStr.append(" \"xxxxxx\":{\n"); String mid = ""; - String mid_old = ""; + String midOld = ""; String level = "-1"; - String level_old = "-1"; + String levelOld = "-1"; String eid = ""; for (int i = 0; i < ds.getRowCount(); i++) { mid = ds.getString(i, "mid"); level = ds.getString(i, "level1"); eid = ds.getString(i, "eid"); - if(mid.equals(mid_old)) { + if(mid.equals(midOld)) { dataStr.append("\""+ eid +"\": 9956,\n"); } else { if(dataStr.lastIndexOf(",")!= -1) dataStr.deleteCharAt(dataStr.lastIndexOf(",")); - //if(Integer.parseInt(level_old)==Integer.parseInt(level)) + //if(Integer.parseInt(levelOld)==Integer.parseInt(level)) //dataStr.append("},\n"); - if (Integer.parseInt(level_old)