aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPooja03 <PM00501616@techmahindra.com>2018-02-01 16:11:11 +0530
committerPooja03 <PM00501616@techmahindra.com>2018-02-01 16:13:19 +0530
commitbf2c95c8eeb5e8b4d38c2f4edf8642ac284b4e1e (patch)
tree70f2dc149ab6d008ad00990b7944398487ff6873
parent91ba8a3cb383770316eafa9ee4939f3c70547063 (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>
-rw-r--r--src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java2
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();
}