summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-common/src
diff options
context:
space:
mode:
authordinesha <dineshgs@in.ibm.com>2019-08-01 13:21:29 +0530
committerdinesha <dineshgs@in.ibm.com>2019-08-01 13:21:56 +0530
commit0ba35215779fc03f74d52766f0317cdaa73894bc (patch)
treeea412b7161f68d73896a61c6ee0d50052bd0681b /ecomp-sdk/epsdk-app-common/src
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>
Diffstat (limited to 'ecomp-sdk/epsdk-app-common/src')
-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);