summaryrefslogtreecommitdiffstats
path: root/openstack-client-connectors/http-connector
diff options
context:
space:
mode:
authorSindhuri.A <arcot.sindhuri@huawei.com>2019-04-17 18:40:18 +0530
committerSindhuri.A <arcot.sindhuri@huawei.com>2019-04-17 18:40:18 +0530
commit1beb9d7e9d042eeec06fb0b710e8ba22f4ae29b3 (patch)
tree8d8ece6a99bbe06a497f4044b6e6483af0bfb0d8 /openstack-client-connectors/http-connector
parent9cf72ced6cba4ba7326ceaf34887c212a301b0df (diff)
modify array declare, removed unused import
modified array declaration,removed unused import and changed variable name Issue-ID: SO-1490 Change-Id: I240a6912bdc3a913a279166ef92e2a2ea0d75873 Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
Diffstat (limited to 'openstack-client-connectors/http-connector')
-rw-r--r--openstack-client-connectors/http-connector/src/main/java/com/woorea/openstack/connector/HttpClientResponse.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/openstack-client-connectors/http-connector/src/main/java/com/woorea/openstack/connector/HttpClientResponse.java b/openstack-client-connectors/http-connector/src/main/java/com/woorea/openstack/connector/HttpClientResponse.java
index 99421b8..f1c8c78 100644
--- a/openstack-client-connectors/http-connector/src/main/java/com/woorea/openstack/connector/HttpClientResponse.java
+++ b/openstack-client-connectors/http-connector/src/main/java/com/woorea/openstack/connector/HttpClientResponse.java
@@ -34,7 +34,7 @@ import java.util.Map;
public class HttpClientResponse implements OpenStackResponse {
- private static Logger LOGGER = LoggerFactory.getLogger(HttpClientConnector.class);
+ private static Logger logger = LoggerFactory.getLogger(HttpClientConnector.class);
private HttpResponse response = null;
private String entityBody = null;
@@ -46,7 +46,7 @@ public class HttpClientResponse implements OpenStackResponse {
// Read the body so InputStream can be closed
if (response.getEntity() == null) {
// No body
- LOGGER.debug ("No Response Body");
+ logger.debug ("No Response Body");
return;
}
@@ -57,7 +57,7 @@ public class HttpClientResponse implements OpenStackResponse {
throw new HttpClientException ("Error Reading Response Body", e);
}
entityBody = responseBody.toString();
- LOGGER.debug (entityBody);
+ logger.debug (entityBody);
}
@@ -94,7 +94,7 @@ public class HttpClientResponse implements OpenStackResponse {
public Map<String, String> headers() {
Map<String, String> headers = new HashMap<>();
- Header responseHeaders[] = response.getAllHeaders();
+ Header[] responseHeaders = response.getAllHeaders();
for (Header h : responseHeaders) {
headers.put(h.getName(), h.getValue());
}