From ac6f54fcfd2b07a4804620bd9cfa6de6ce4e1c0c Mon Sep 17 00:00:00 2001 From: DylanB95EST Date: Fri, 8 Apr 2022 15:53:50 +0100 Subject: 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 --- .../cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cps-ncmp-rest') 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( -- cgit 1.2.3-korg