fixed some issues from sonar
[portal.git] / ecomp-portal-BE-common / src / main / java / org / onap / portalapp / portal / controller / SchedulerAuxController.java
index c99953f..20fddf9 100644 (file)
@@ -37,9 +37,6 @@
  */
 package org.onap.portalapp.portal.controller;
 
-import java.util.Date;
-import java.util.HashMap;
-import java.util.Map;
 import java.util.UUID;
 
 import javax.servlet.http.HttpServletRequest;
@@ -61,6 +58,7 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
 import org.springframework.http.HttpStatus;
 import org.springframework.http.ResponseEntity;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RestController;
 
@@ -78,7 +76,7 @@ public class SchedulerAuxController extends EPRestrictedBaseController {
        /** The logger. */
        private static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(SchedulerAuxController.class);
 
-       @RequestMapping(value = "/get_policy", method = RequestMethod.GET, produces = "application/json")
+       @GetMapping(value = "/get_policy", produces = "application/json")
        public ResponseEntity<String> getPolicyInfo(HttpServletRequest request) throws Exception {
                try {