Fixed major sonar issues
[clamp.git] / src / main / java / org / onap / clamp / clds / client / DcaeInventoryServices.java
index 192dcdb..8f80e07 100644 (file)
@@ -101,7 +101,7 @@ public class DcaeInventoryServices {
             String serviceUuid = sdcCatalogServices.getServiceUuidFromServiceInvariantId(invariantServiceUuid);\r
             String resourceUuid = "";\r
             if (resourceUuidList != null && !resourceUuidList.isEmpty()) {\r
-                resourceUuid = resourceUuidList.get(0).toString();\r
+                resourceUuid = resourceUuidList.get(0);\r
             }\r
             /* Invemtory service url is called in this method */\r
             isDcaeInfoAvailable = getDcaeInformation(artifactName, serviceUuid, resourceUuid);\r
@@ -215,7 +215,7 @@ public class DcaeInventoryServices {
             JSONArray itemsArray = (JSONArray) jsonObj.get("items");\r
             JSONObject dcaeServiceType0 = (JSONObject) itemsArray.get(0);\r
             daceInventoryResponse = dcaeServiceType0.toString();\r
-            logger.info(daceInventoryResponse.toString());\r
+            logger.info(daceInventoryResponse);\r
         }\r
         LoggingUtils.setTimeContext(startTime, new Date());\r
         metricsLogger.info("getDcaeInformation complete: number services returned=" + numServices);\r