diff options
author | 2020-07-07 17:07:51 +0000 | |
---|---|---|
committer | 2020-07-07 17:07:51 +0000 | |
commit | 72b20ecd24344bd83617bb9ad2e943173356042f (patch) | |
tree | fba3cb99a03d4b1c7a7927e3d5c7e61c845dea2b /ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller | |
parent | fc0474194a2e78f7443e3c4cf03fd6354fa3054b (diff) | |
parent | b607cb2751cfe784ffaebec203a56b81bc9812f8 (diff) |
Merge "lowered sonar code smells"
Diffstat (limited to 'ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller')
2 files changed, 4 insertions, 4 deletions
diff --git a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/ReportDashboardController.java b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/ReportDashboardController.java index 50e6d096..6147f960 100644 --- a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/ReportDashboardController.java +++ b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/ReportDashboardController.java @@ -45,7 +45,7 @@ import javax.servlet.http.HttpServletRequest; import org.onap.portalsdk.core.controller.RestrictedBaseController; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.servlet.ModelAndView; /** @@ -56,7 +56,7 @@ import org.springframework.web.servlet.ModelAndView; @Controller @RequestMapping("/") public class ReportDashboardController extends RestrictedBaseController { - @RequestMapping(value = {"/report_dashboard" }, method = RequestMethod.GET) + @GetMapping(value = {"/report_dashboard" }) public ModelAndView adminView(HttpServletRequest request) { Map<String, Object> model = new HashMap<>(); return new ModelAndView(getViewName(),"model", model); diff --git a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/SamplePageController.java b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/SamplePageController.java index 5adaf66e..ef979e69 100644 --- a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/SamplePageController.java +++ b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/sample/SamplePageController.java @@ -45,7 +45,7 @@ import javax.servlet.http.HttpServletRequest; import org.onap.portalsdk.core.controller.RestrictedBaseController; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.servlet.ModelAndView; /** @@ -56,7 +56,7 @@ import org.springframework.web.servlet.ModelAndView; @RequestMapping("/") public class SamplePageController extends RestrictedBaseController { - @RequestMapping(value = { "/samplePage" }, method = RequestMethod.GET) + @GetMapping(value = { "/samplePage" }) public ModelAndView plot(HttpServletRequest request) { Map<String, Object> model = new HashMap<>(); |