diff options
author | 2018-02-01 16:11:11 +0530 | |
---|---|---|
committer | 2018-02-01 16:13:19 +0530 | |
commit | bf2c95c8eeb5e8b4d38c2f4edf8642ac284b4e1e (patch) | |
tree | 70f2dc149ab6d008ad00990b7944398487ff6873 /src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java | |
parent | 91ba8a3cb383770316eafa9ee4939f3c70547063 (diff) |
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 <PM00501616@techmahindra.com>
Diffstat (limited to 'src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java')
-rw-r--r-- | src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |