diff options
author | seanbeirne <sean.beirne@est.tech> | 2023-11-08 10:11:16 +0000 |
---|---|---|
committer | seanbeirne <sean.beirne@est.tech> | 2023-11-08 10:13:27 +0000 |
commit | 5bb895a012fcbca17c895d9d8f1f8ded406dbcc1 (patch) | |
tree | 15a24f706d2b21a769280c4c78d82ab7877da952 | |
parent | cc2d5837b72abf3c2d83889c45c646dbb4756b2b (diff) |
Fix Code Smells
Issue-ID: CPS-1957
Signed-off-by: seanbeirne <sean.beirne@est.tech>
Change-Id: I901fd568752dbb42d95fa330f8d6d7dd0128b95f
-rwxr-xr-x | cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java index d1ef7faa81..e1ff400c82 100755 --- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java +++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/NetworkCmProxyDataServiceImpl.java @@ -484,10 +484,9 @@ public class NetworkCmProxyDataServiceImpl implements NetworkCmProxyDataService final Map<NcmpResponseStatus, List<String>> failedCmHandlesPerResponseStatus) { final List<CmHandleRegistrationResponse> cmHandleUpgradeResponses = upgradeCmHandles(acceptedCmHandleStatePerCmHandle); - failedCmHandlesPerResponseStatus.forEach((ncmpResponseStatus, cmHandleIds) -> { + failedCmHandlesPerResponseStatus.forEach((ncmpResponseStatus, cmHandleIds) -> cmHandleIds.forEach(cmHandleId -> cmHandleUpgradeResponses.add(CmHandleRegistrationResponse - .createFailureResponse(cmHandleId, ncmpResponseStatus))); - }); + .createFailureResponse(cmHandleId, ncmpResponseStatus)))); return cmHandleUpgradeResponses; } |