summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManoop Talasila <talasila@research.att.com>2019-08-13 18:22:25 +0000
committerGerrit Code Review <gerrit@onap.org>2019-08-13 18:22:25 +0000
commitce3e65f9a066d862593ce8a815abf3ae245949b0 (patch)
tree6f4e093be21a33314ce6b85e0a511df622ee19cc
parenta3dcafbe563c8873542d6fdda94996b2348bc8a0 (diff)
parentb1a656eff5b44ab8ce53e57a0fcb1c04642622ba (diff)
Merge "Sonar Fix- ReportFormFields.java" into release-2.6.0
-rw-r--r--ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/runtime/ReportFormFields.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/runtime/ReportFormFields.java b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/runtime/ReportFormFields.java
index 02a3de4e..7bacd229 100644
--- a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/runtime/ReportFormFields.java
+++ b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/runtime/ReportFormFields.java
@@ -90,7 +90,7 @@ public class ReportFormFields extends Vector {
//Calendar rangeEndDate = fft.getRangeEndDate().toGregorianCalendar();
String rangeStartDateSQL = fft.getRangeStartDateSQL();
String rangeEndDateSQL = fft.getRangeEndDateSQL();
- String user_id = AppUtils.getUserID(request);
+ String userId = AppUtils.getUserID(request);
String multiSelectListSize = fft.getMultiSelectListSize();
//s_logger.debug("ranges are : " + fft.getRangeStartDate() + fft.getRangeEndDate());
@@ -122,9 +122,9 @@ public class ReportFormFields extends Vector {
}
// }
}
- fieldSQL = Utils.replaceInString(fieldSQL, "[USERID]", user_id);
- fieldSQL = Utils.replaceInString(fieldSQL, "[USER_ID]", user_id);
- fieldSQL = Utils.replaceInString(fieldSQL, "[LOGGED_USERID]", user_id);
+ fieldSQL = Utils.replaceInString(fieldSQL, "[USERID]", userId);
+ fieldSQL = Utils.replaceInString(fieldSQL, "[USER_ID]", userId);
+ fieldSQL = Utils.replaceInString(fieldSQL, "[LOGGED_USERID]", userId);
}
@@ -152,9 +152,9 @@ public class ReportFormFields extends Vector {
fieldDefaultSQL = Utils.replaceInString(fieldDefaultSQL, "[" + sessionParameters[i].toUpperCase()+"]", (String)session.getAttribute(sessionParameters[i]) );
}
- fieldDefaultSQL = Utils.replaceInString(fieldDefaultSQL, "[USERID]", user_id);
- fieldDefaultSQL = Utils.replaceInString(fieldDefaultSQL, "[USER_ID]", user_id);
- fieldDefaultSQL = Utils.replaceInString(fieldDefaultSQL, "[LOGGED_USERID]", user_id);
+ fieldDefaultSQL = Utils.replaceInString(fieldDefaultSQL, "[USERID]", userId);
+ fieldDefaultSQL = Utils.replaceInString(fieldDefaultSQL, "[USER_ID]", userId);
+ fieldDefaultSQL = Utils.replaceInString(fieldDefaultSQL, "[LOGGED_USERID]", userId);
}
//s_logger.debug("fieldSQL After" + fieldSQL);
if(rangeStartDateSQL!=null) {