Fix sonar issue 41/123641/1
authorRam Krishna Verma <ram_krishna.verma@bell.ca>
Thu, 26 Aug 2021 18:48:27 +0000 (14:48 -0400)
committerRam Krishna Verma <ram_krishna.verma@bell.ca>
Thu, 26 Aug 2021 18:48:35 +0000 (14:48 -0400)
Issue-ID: POLICY-3077
Change-Id: I53447f551804f4455b65d19d84685ece5cba1c5a
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarder.java

index 7f9d690..4d0a8f7 100644 (file)
@@ -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(