aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2021-08-26 20:33:21 +0000
committerGerrit Code Review <gerrit@onap.org>2021-08-26 20:33:21 +0000
commit6f93d1e3fac1dda1f457259b8b2cfd93bdcbe670 (patch)
tree77b2456fb88c7836d1d424b1a8a3ed32cf5e6f26
parenta79f1b837a5d1105eff7135763762f56b1bc5501 (diff)
parent773ec397a32715a3567bc8f8c7e3729319905d23 (diff)
Merge "Fix sonar issue"
-rw-r--r--plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java b/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java
index 7f9d690d..4d0a8f70 100644
--- a/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java
+++ b/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java
@@ -142,7 +142,7 @@ public class LifecycleApiPolicyForwarder implements PolicyForwarder {
private Response invokeHttpClient(final Entity<?> entity, final String path, final boolean wantApi)
throws PolicyForwardingException {
- Response response = getHttpClient(wantApi).post(path, entity, Map.of(HttpHeaders.ACCEPT,
+ var response = getHttpClient(wantApi).post(path, entity, Map.of(HttpHeaders.ACCEPT,
MediaType.APPLICATION_JSON, HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON));
if (response.getStatus() / 100 != 2) {
LOGGER.error(