From bf2c95c8eeb5e8b4d38c2f4edf8642ac284b4e1e Mon Sep 17 00:00:00 2001 From: Pooja03 Date: Thu, 1 Feb 2018 16:11:11 +0530 Subject: Sonar Major fix resourcePath variable is already a string, there's no need to call toString method Sonar Link:https://sonar.onap.org/component_issues/index?id=org.onap.dcaegen2.platform%3Ainventory-api#severities=MAJOR|resolved=false|rules=squid%3AS1858 Change-Id: I5470b33aed3c8fd487c4d3687ee6f1d2de77abeb Location:DatabusControllerClient.java:L51 Issue-ID: DCAEGEN2-296 Signed-off-by: Pooja03 --- .../java/org/onap/dcae/inventory/clients/DatabusControllerClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java b/src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java index 29330b0..b2429d9 100644 --- a/src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java +++ b/src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java @@ -48,7 +48,7 @@ public class DatabusControllerClient { resourcePath = (new StringBuilder("/")).append(resourcePath).toString(); } - return UriBuilder.fromPath(resourcePath.toString()).scheme("https").host(this.connectionConfiguration.getHost()) + return UriBuilder.fromPath(resourcePath).scheme("https").host(this.connectionConfiguration.getHost()) .port(this.connectionConfiguration.getPort()).build(); } -- cgit 1.2.3-korg