From 0c892f0699b40409ed21cf3ec9c092430b607a17 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Fri, 30 Nov 2018 15:45:42 +0530 Subject: Sonar Fix: ResourceDictionaryRest.java Fixed sonar issues/code-smells across this file. Issue-ID: CCSDK-773 Change-Id: I28a6ebef8f59c32a309ead8ddc032d51c6b0e36d Signed-off-by: Arundathi Patil --- .../service/rs/ResourceDictionaryRest.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'ms/controllerblueprints') diff --git a/ms/controllerblueprints/modules/service/src/main/java/org/onap/ccsdk/apps/controllerblueprints/service/rs/ResourceDictionaryRest.java b/ms/controllerblueprints/modules/service/src/main/java/org/onap/ccsdk/apps/controllerblueprints/service/rs/ResourceDictionaryRest.java index 287d413cc..9b2209e8b 100644 --- a/ms/controllerblueprints/modules/service/src/main/java/org/onap/ccsdk/apps/controllerblueprints/service/rs/ResourceDictionaryRest.java +++ b/ms/controllerblueprints/modules/service/src/main/java/org/onap/ccsdk/apps/controllerblueprints/service/rs/ResourceDictionaryRest.java @@ -47,13 +47,12 @@ public class ResourceDictionaryRest { @PostMapping(path = "", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE) public @ResponseBody - ResourceDictionary saveResourceDictionary(@RequestBody ResourceDictionary dataDictionary) - throws BluePrintException { + ResourceDictionary saveResourceDictionary(@RequestBody ResourceDictionary dataDictionary) { return resourceDictionaryService.saveResourceDictionary(dataDictionary); } @DeleteMapping(path = "/{name}") - public void deleteResourceDictionaryByName(@PathVariable(value = "name") String name) throws BluePrintException { + public void deleteResourceDictionaryByName(@PathVariable(value = "name") String name) { resourceDictionaryService.deleteResourceDictionary(name); } @@ -65,14 +64,13 @@ public class ResourceDictionaryRest { @PostMapping(path = "/by-names", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE) public @ResponseBody - List searchResourceDictionaryByNames(@RequestBody List names) - throws BluePrintException { + List searchResourceDictionaryByNames(@RequestBody List names) { return resourceDictionaryService.searchResourceDictionaryByNames(names); } @GetMapping(path = "/search/{tags}", produces = MediaType.APPLICATION_JSON_VALUE) public @ResponseBody - List searchResourceDictionaryByTags(@PathVariable(value = "tags") String tags) throws BluePrintException { + List searchResourceDictionaryByTags(@PathVariable(value = "tags") String tags) { return resourceDictionaryService.searchResourceDictionaryByTags(tags); } -- cgit 1.2.3-korg