Fix SonarQube quality issues 95/143395/2
authorToineSiebelink <toine.siebelink@est.tech>
Thu, 26 Feb 2026 09:39:37 +0000 (09:39 +0000)
committerToineSiebelink <toine.siebelink@est.tech>
Thu, 26 Feb 2026 11:03:35 +0000 (11:03 +0000)
commitce257565e6cc626874c82f746f89fcfacf30a8d7
treea304967dffa9002d178ee1b9ec2ed3757ec6572d
parentfa7aec9bf705459712bf39abe791ec727809c47f
Fix SonarQube quality issues

- extract out common methods for json conversion
- applied consistent ...AsJson names for those methods
- use json mapper properly instead of partly hardcoding json
- use static imports to shorten code

Issue-ID:CPS-475

Change-Id: Id190d2dd46f1fe05ac14ab3e40ba8e9549c163b8
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/InventoryPersistenceImpl.java