Sonar Minor issue 43/58343/5
authorBharathS24 <BS00493532@techmahindra.com>
Fri, 3 Aug 2018 15:09:44 +0000 (20:39 +0530)
committerBharathS24 <BS00493532@techmahindra.com>
Fri, 3 Aug 2018 15:09:57 +0000 (20:39 +0530)
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 <BS00493532@techmahindra.com>
src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java

index b2429d9..05dd373 100644 (file)
@@ -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;
-    }
-
 }