From 0cd3c5170006d24f515e3bdc71ee37b0b92b2922 Mon Sep 17 00:00:00 2001 From: BharathS24 Date: Fri, 3 Aug 2018 20:39:44 +0530 Subject: Sonar Minor issue Move this constructor to comply with Java Code Conventions Sonar Link : https://sonar.onap.org/issues?myIssues=true&open=AWEPiFEd-08if2a6xy-3&resolved=false Location : src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java:L85 Change-Id: I418e842953c311a4284080837a2d4be178db4abf Issue-ID: DCAEGEN2-652 Signed-off-by: BharathS24 --- .../onap/dcae/inventory/clients/DatabusControllerClient.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 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 b2429d9..05dd373 100644 --- a/src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java +++ b/src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java @@ -42,6 +42,11 @@ public class DatabusControllerClient { private final Client client; private final InventoryConfiguration.DatabusControllerConnectionConfiguration connectionConfiguration; + public DatabusControllerClient(Client client, InventoryConfiguration.DatabusControllerConnectionConfiguration connectionConfiguration) { + this.client = client; + this.connectionConfiguration = connectionConfiguration; + } + public URI constructResourceURI(String resourcePath) { // Make sure that the resource path has a "/" because the UriBuilder sucks and doesn't do it for us. if (resourcePath.charAt(0) != '/') { @@ -81,11 +86,4 @@ public class DatabusControllerClient { throw new DatabusControllerClientException(String.format("Unexpected error from databus controller: %d", response.getStatus())); } - - public DatabusControllerClient(Client client, - InventoryConfiguration.DatabusControllerConnectionConfiguration connectionConfiguration) { - this.client = client; - this.connectionConfiguration = connectionConfiguration; - } - } -- cgit 1.2.3-korg