summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-analytics
diff options
context:
space:
mode:
authorManoop Talasila <talasila@research.att.com>2019-08-19 14:51:11 +0000
committerGerrit Code Review <gerrit@onap.org>2019-08-19 14:51:11 +0000
commit0059d930202a56fa4fead529980230bf110aab2e (patch)
treeb609bcc6303f0c6be169d3c12044994f4b8bf457 /ecomp-sdk/epsdk-analytics
parentf9aedf561ed7d1684ebc174507fedbbd6e075050 (diff)
parent2e8400343e7ea7c94e30ab641637b5b7c32c489b (diff)
Merge "Sonar fix - ChartD3Helper.java - Rename the Variable to match the regular expression"
Diffstat (limited to 'ecomp-sdk/epsdk-analytics')
-rw-r--r--ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/runtime/ChartD3Helper.java14
1 files changed, 7 insertions, 7 deletions
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)<Integer.parseInt(level))
+ if (Integer.parseInt(levelOld)<Integer.parseInt(level))
dataStr.append("},\n");
dataStr.append("\""+ mid +"\": { \n");
}
- mid_old = mid;
- level_old = level;
+ midOld = mid;
+ levelOld = level;
}
if(dataStr.toString().endsWith(","))
dataStr.deleteCharAt(dataStr.lastIndexOf(","));