summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-common
diff options
context:
space:
mode:
authorManoop Talasila <talasila@research.att.com>2018-09-12 16:05:08 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-12 16:05:08 +0000
commit7f17123b90c7cc4efa5b054ef906d61a8150aab8 (patch)
tree9471ba15acab005f6f1b02573e0974da24d57f87 /ecomp-sdk/epsdk-app-common
parent7a0f454ea3f67994e42a322e2bef15c041fd74be (diff)
parent0ed8ba7e8d89309e860a5e8dea5bb43931496e5c (diff)
Merge "Sonar major issues"
Diffstat (limited to 'ecomp-sdk/epsdk-app-common')
-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());