summaryrefslogtreecommitdiffstats
path: root/openstack-client-connectors/jersey2-connector
diff options
context:
space:
mode:
authorrama-huawei <rama.subba.reddy.s@huawei.com>2017-10-18 11:29:23 +0530
committerrama-huawei <rama.subba.reddy.s@huawei.com>2017-10-18 11:29:54 +0530
commit7b86bb9d084bb9642616e80c0980696aa55eade2 (patch)
treeff6eead89aaf3df3f9790601c73bd5783a45960f /openstack-client-connectors/jersey2-connector
parentf47593695b68356803d45475b85a0e12388426cc (diff)
Added the "@Override" annotation
Issue-id: SO-224 Change-Id: Ia7802db1ba32a97340bca8d0c71714b988abb6e5 Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
Diffstat (limited to 'openstack-client-connectors/jersey2-connector')
-rw-r--r--openstack-client-connectors/jersey2-connector/src/main/java/com/woorea/openstack/connector/OpenStack.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/openstack-client-connectors/jersey2-connector/src/main/java/com/woorea/openstack/connector/OpenStack.java b/openstack-client-connectors/jersey2-connector/src/main/java/com/woorea/openstack/connector/OpenStack.java
index 4add865..2ec564c 100644
--- a/openstack-client-connectors/jersey2-connector/src/main/java/com/woorea/openstack/connector/OpenStack.java
+++ b/openstack-client-connectors/jersey2-connector/src/main/java/com/woorea/openstack/connector/OpenStack.java
@@ -67,7 +67,7 @@ public class OpenStack {
try {
- SSLContext context = null;
+ SSLContext context;
context = SSLContext.getInstance("SSL");
context.init(null, null, null);
@@ -103,6 +103,7 @@ public class OpenStack {
CLIENT.register(new JacksonFeature()).register(new ContextResolver<ObjectMapper>() {
+ @Override
public ObjectMapper getContext(Class<?> type) {
return type.getAnnotation(JsonRootName.class) == null ? DEFAULT_MAPPER : WRAPPED_MAPPER;
}
@@ -111,6 +112,7 @@ public class OpenStack {
CLIENT.register(new ClientRequestFilter() {
+ @Override
public void filter(ClientRequestContext requestContext) throws IOException {
requestContext.getHeaders().remove("Content-Language");
requestContext.getHeaders().remove("Content-Encoding");