summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinesha <dineshgs@in.ibm.com>2019-08-01 13:21:29 +0530
committerManoop Talasila <talasila@research.att.com>2019-08-05 18:39:17 +0000
commit48e968bbbc994f7b6e17e7b516b700929441e9e4 (patch)
treeea412b7161f68d73896a61c6ee0d50052bd0681b
parent71cf9cbe286d92e38b517e3a5829ba833859c93f (diff)
Sonar Fix - ProfileSearchController.java
Fixed SOnar issues accross the file Issue-ID: PORTAL-686 Change-Id: I89acda2c696dfd7d64fcf7b1ddbaa8078029f9ad Signed-off-by: dinesha <dineshgs@in.ibm.com> (cherry picked from commit 0ba35215779fc03f74d52766f0317cdaa73894bc)
-rw-r--r--ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/ProfileSearchController.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/ProfileSearchController.java b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/ProfileSearchController.java
index fdd26bab..ff80d413 100644
--- a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/ProfileSearchController.java
+++ b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/ProfileSearchController.java
@@ -56,7 +56,6 @@ import org.onap.portalsdk.core.domain.MenuData;
import org.onap.portalsdk.core.domain.User;
import org.onap.portalsdk.core.domain.UserApp;
import org.onap.portalsdk.core.logging.logic.EELFLoggerDelegate;
-import org.onap.portalsdk.core.onboarding.exception.PortalAPIException;
import org.onap.portalsdk.core.service.FnMenuService;
import org.onap.portalsdk.core.service.UserProfileService;
import org.onap.portalsdk.core.service.UserService;
@@ -134,7 +133,7 @@ public class ProfileSearchController extends RestrictedBaseController {
model.put("profileList", mapper.writeValueAsString(profileFinalList));
JsonMessage msg = new JsonMessage(mapper.writeValueAsString(model));
JSONObject j = new JSONObject(msg);
- response.setContentType("application/json");
+ response.setContentType(APPLICATION_JSON);
response.getWriter().write(j.toString());
} catch (Exception e) {
logger.error(EELFLoggerDelegate.applicationLogger, "getUserPagination failed", e);