summaryrefslogtreecommitdiffstats
path: root/openstack-client-connectors/jersey2-connector
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2017-10-23 04:16:44 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-23 04:16:44 +0000
commit646b0091820946ead7ca8e9b351e1647fe259eed (patch)
tree91f22f2d5101cc4c7cf32bec6fbd28085b93ff43 /openstack-client-connectors/jersey2-connector
parentedb59b53da288feef26a1f6f897251c2160277df (diff)
parent7b86bb9d084bb9642616e80c0980696aa55eade2 (diff)
Merge "Added the "@Override" annotation"
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");