aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBharathS24 <BS00493532@techmahindra.com>2018-08-03 20:39:44 +0530
committerBharathS24 <BS00493532@techmahindra.com>2018-08-03 20:39:57 +0530
commit0cd3c5170006d24f515e3bdc71ee37b0b92b2922 (patch)
tree2c4c6ccd2a6ee4f931ac97cd02f8369c7537c3d5
parent07d7e9a461097aacb85345ba8bdfe1d7f77a0483 (diff)
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 <BS00493532@techmahindra.com>
-rw-r--r--src/main/java/org/onap/dcae/inventory/clients/DatabusControllerClient.java12
1 files 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;
- }
-
}