summaryrefslogtreecommitdiffstats
path: root/openstack-client-connectors
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2017-10-23 11:23:49 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-23 11:23:49 +0000
commit1a2d66481809db6a69bcf8cb9da165f61b08e5da (patch)
tree03036b47df5b8d39be7fc7d7c1027e40561aedb5 /openstack-client-connectors
parent32a3d0b0d8eaca8ed61d1a73852123b7b59e5285 (diff)
parentb2d002041040b4e612ef7e9219144a39125b17a5 (diff)
Merge "Replace type specification with operator "<>""
Diffstat (limited to 'openstack-client-connectors')
-rw-r--r--openstack-client-connectors/resteasy-connector/src/main/java/com/woorea/openstack/connector/RESTEasyConnector.java2
-rw-r--r--openstack-client-connectors/resteasy-connector/src/main/java/com/woorea/openstack/connector/RESTEasyResponse.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/openstack-client-connectors/resteasy-connector/src/main/java/com/woorea/openstack/connector/RESTEasyConnector.java b/openstack-client-connectors/resteasy-connector/src/main/java/com/woorea/openstack/connector/RESTEasyConnector.java
index 9fd4754..58c11e1 100644
--- a/openstack-client-connectors/resteasy-connector/src/main/java/com/woorea/openstack/connector/RESTEasyConnector.java
+++ b/openstack-client-connectors/resteasy-connector/src/main/java/com/woorea/openstack/connector/RESTEasyConnector.java
@@ -55,6 +55,7 @@ public class RESTEasyConnector implements OpenStackClientConnector {
super();
addContextResolver(new ContextResolver<ObjectMapper>() {
+ @Override
public ObjectMapper getContext(Class<?> type) {
return type.getAnnotation(JsonRootName.class) == null ? DEFAULT_MAPPER : WRAPPED_MAPPER;
}
@@ -95,6 +96,7 @@ public class RESTEasyConnector implements OpenStackClientConnector {
providerFactory = new OpenStackProviderFactory();
}
+ @Override
public <T> OpenStackResponse request(OpenStackRequest<T> request) {
ClientRequest client = new ClientRequest(UriBuilder.fromUri(request.endpoint() + "/" + request.path()),
ClientRequest.getDefaultExecutor(), providerFactory);
diff --git a/openstack-client-connectors/resteasy-connector/src/main/java/com/woorea/openstack/connector/RESTEasyResponse.java b/openstack-client-connectors/resteasy-connector/src/main/java/com/woorea/openstack/connector/RESTEasyResponse.java
index dc57d88..344317f 100644
--- a/openstack-client-connectors/resteasy-connector/src/main/java/com/woorea/openstack/connector/RESTEasyResponse.java
+++ b/openstack-client-connectors/resteasy-connector/src/main/java/com/woorea/openstack/connector/RESTEasyResponse.java
@@ -62,7 +62,7 @@ public class RESTEasyResponse implements OpenStackResponse {
@Override
public Map<String, String> headers() {
- Map<String, String> headers = new HashMap<String, String>();
+ Map<String, String> headers = new HashMap<>();
MultivaluedMap<String, Object> responseHeaders = response.getHeaders();
for (String key : responseHeaders.keySet()) {