Sonar Major 43/29943/1
authorSwapnali Pode <SP00501638@techmahindra.com>
Thu, 1 Feb 2018 06:07:59 +0000 (11:37 +0530)
committerSwapnali Pode <SP00501638@techmahindra.com>
Thu, 1 Feb 2018 06:08:31 +0000 (11:38 +0530)
Remove this useless assignment to local variable result
RestClientProducer.java:L90

Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.onap.aai.router-core%3Arouter-core#severities=MAJOR|resolved=false

Location:
src/main/java/org/onap/aai/rest/RestClientProducer.java

Change-Id: I53c3e36ea43736e8752a23be3211fc1c49e0537a
Issue-ID: AAI-720
Signed-off-by: Swapnali Pode <SP00501638@techmahindra.com>
src/main/java/org/onap/aai/rest/RestClientProducer.java

index 579315d..c4cfce8 100644 (file)
@@ -87,7 +87,7 @@ public class RestClientProducer extends DefaultProducer {
     }
 
     // Now, invoke the REST client to perform the operation.
-    OperationResult result = null;
+    OperationResult result;
     switch (getOperation(exchange)) {
 
       case GET: