From 86bc660e75250bcf26425e8cba7c8b844d3ce2c7 Mon Sep 17 00:00:00 2001 From: "Determe, Sebastien (sd378r)" Date: Tue, 3 Apr 2018 16:30:18 +0200 Subject: Fix sonar bugs Fix Sonar bugs and bad comments in the code Issue-ID: CLAMP-147 Change-Id: I4cc8e00a0d063396b7dd6ac6c7fcf408607f998e Signed-off-by: Determe, Sebastien (sd378r) --- .../clamp/clds/config/spring/CldsSdcControllerConfiguration.java | 2 +- .../java/org/onap/clamp/clds/service/CldsTemplateService.java | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/org/onap/clamp/clds/config/spring/CldsSdcControllerConfiguration.java b/src/main/java/org/onap/clamp/clds/config/spring/CldsSdcControllerConfiguration.java index 09d4d633..c191dbc8 100644 --- a/src/main/java/org/onap/clamp/clds/config/spring/CldsSdcControllerConfiguration.java +++ b/src/main/java/org/onap/clamp/clds/config/spring/CldsSdcControllerConfiguration.java @@ -75,7 +75,7 @@ public class CldsSdcControllerConfiguration { try { e.closeSdc(); } catch (SdcControllerException e1) { - logger.error("Exception caught during initialization of sdc controller", e); + logger.error("Exception caught during initialization of sdc controller", e1); } }); } diff --git a/src/main/java/org/onap/clamp/clds/service/CldsTemplateService.java b/src/main/java/org/onap/clamp/clds/service/CldsTemplateService.java index 7a9ee70e..f26d7467 100644 --- a/src/main/java/org/onap/clamp/clds/service/CldsTemplateService.java +++ b/src/main/java/org/onap/clamp/clds/service/CldsTemplateService.java @@ -23,10 +23,6 @@ package org.onap.clamp.clds.service; -import com.fasterxml.jackson.core.JsonParseException; -import com.fasterxml.jackson.databind.JsonMappingException; - -import java.io.IOException; import java.util.Date; import java.util.List; @@ -147,9 +143,8 @@ public class CldsTemplateService extends SecureServiceBase { * REST service that saves a CLDS template by name in the database. * * @param templateName - * @throws IOException - * @throws JsonMappingException - * @throws JsonParseException + * @param cldsTemplate + * @return The CldsTemplate modified and saved in DB */ @PUT @Path("/template/{templateName}") -- cgit 1.2.3-korg