summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-common/src/main/java
diff options
context:
space:
mode:
authorSumapriya Sarvepalli <ss00493505@techmahindra.com>2018-08-14 11:19:37 +0530
committerSumapriya Sarvepalli <ss00493505@techmahindra.com>2018-08-14 11:19:37 +0530
commit0ed8ba7e8d89309e860a5e8dea5bb43931496e5c (patch)
tree554b22495f2f28da0eb82ffe11c0acc95f608d61 /ecomp-sdk/epsdk-app-common/src/main/java
parentbe5d92eb7ed2aa6fd91795ba6e794f15936b1b99 (diff)
Sonar major issues
This block of commented-out lines of code should be removed Sonar Link: https://sonar.onap.org/project/issues?assignees=sumapriya&id=org.onap.portal.sdk%3Aepsdk-project&open=AV_om9w5-08if2a6uh0R&resolved=false Location: ecomp-sdk/ONAP Portal SDK Webapp/ Common/src/main/java/org/onap/portalapp/controller/sample/PostDroolsController.java Line No: L78 L100 L129 Change-Id: Id85ee4482679942031fee8c57571b2415d6b15fe Issue-ID: PORTAL-355 Signed-off-by: Sumapriya Sarvepalli <ss00493505@techmahindra.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-common/src/main/java')
-rw-r--r--ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/PostDroolsController.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/PostDroolsController.java b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/PostDroolsController.java
index fb0338ea..43d548f9 100644
--- a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/PostDroolsController.java
+++ b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/PostDroolsController.java
@@ -75,7 +75,7 @@ public class PostDroolsController extends RestrictedBaseController {
@RequestMapping(value = { "/getDrools" }, method = RequestMethod.GET)
public void getDrools(HttpServletRequest request, HttpServletResponse response) {
- // Map<String, Object> model = new HashMap<String, Object>();
+
ObjectMapper mapper = new ObjectMapper();
try {
@@ -97,7 +97,6 @@ public class PostDroolsController extends RestrictedBaseController {
PostDroolsBean postDroolsBean = new PostDroolsBean();
String selectedFile = request.getParameter("selectedFile");
postDroolsBean.setDroolsFile(selectedFile);// sample populated
- // postDroolsBean.setSelectedRules("[\"NJ\",\"NY\",\"KY\"]");
postDroolsBean.setClassName(postDroolsService.retrieveClass(selectedFile));
JsonMessage msg = new JsonMessage(mapper.writeValueAsString(postDroolsBean));
@@ -126,7 +125,6 @@ public class PostDroolsController extends RestrictedBaseController {
request.setCharacterEncoding("UTF-8");
PrintWriter out = response.getWriter();
- // String responseString = mapper.writeValueAsString(resultsString);
JSONObject j = new JSONObject("{resultsString: " + resultsString + "}");
out.write(j.toString());