-package org.onap.vid.controllers;
+package org.onap.vid.controller;
-import org.onap.vid.properties.Features;
import org.onap.portalsdk.core.controller.RestrictedBaseController;
+import org.onap.vid.properties.Features;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public @ResponseBody Map<String,Boolean> getFeatureToggles()
{
- HashMap<String,Boolean> flags = new HashMap <String, Boolean>();
+ HashMap<String,Boolean> flags = new HashMap <>();
for(Features flag : Features.values()){
flags.put(flag.name(), flag.isActive());
}