summaryrefslogtreecommitdiffstats
path: root/cps-ncmp-rest/src
diff options
context:
space:
mode:
authorDylanB95EST <dylan.byrne@est.tech>2022-04-08 15:53:50 +0100
committerDylanB95EST <dylan.byrne@est.tech>2022-04-08 15:53:54 +0100
commitac6f54fcfd2b07a4804620bd9cfa6de6ce4e1c0c (patch)
treeecded1f31b827bb09841c831a4a4cef7551d1a9f /cps-ncmp-rest/src
parentb7ad8ef3750e2d633acfb8e70255b4d4cb195430 (diff)
Fix Sonar Qube Violations - Recurring task
Fix sonar issues in CPS. - Remove Unnecessary cast to List - Immediately return expession Issue-ID: CPS-475 Change-Id: Ic3fa2f3f92784682045a780d87c6737d04f37659 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
Diffstat (limited to 'cps-ncmp-rest/src')
-rwxr-xr-xcps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java
index e9a69b3054..105a6a559c 100755
--- a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java
+++ b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java
@@ -74,7 +74,8 @@ public class NetworkCmProxyInventoryController implements NetworkCmProxyInventor
private DmiPluginRegistrationErrorResponse getFailureRegistrationResponse(
final DmiPluginRegistrationResponse dmiPluginRegistrationResponse) {
- final var dmiPluginRegistrationErrorResponse = new DmiPluginRegistrationErrorResponse();
+ final DmiPluginRegistrationErrorResponse dmiPluginRegistrationErrorResponse =
+ new DmiPluginRegistrationErrorResponse();
dmiPluginRegistrationErrorResponse.setFailedCreatedCmHandles(
getFailedResponses(dmiPluginRegistrationResponse.getCreatedCmHandles()));
dmiPluginRegistrationErrorResponse.setFailedUpdatedCmHandles(