Fix SonarQube warnings 31/132831/2
authorToineSiebelink <toine.siebelink@est.tech>
Fri, 23 Dec 2022 12:09:19 +0000 (12:09 +0000)
committerToineSiebelink <toine.siebelink@est.tech>
Fri, 23 Dec 2022 13:43:29 +0000 (13:43 +0000)
commit216d299732eb360fecaff7b382376eaa43a07b39
tree4afda003775db4f624c0c9fa876263a9a14a7970
parent294bcb5cb9f06fc83c37648688831e353ed43b22
Fix SonarQube warnings

- fixed most new warnings (required some rerfactoring and renaming)
- had to change method order (becasue private/public)
  which loosk liek a big change because gerrit cannot match thee old/new correctly :-(
- some reformatting to improve readability
- used autoclosable fro streams
- use of deprecated ODL methods will be addressed by separate commit (Lee-Anjella)

Issue-ID: CPS-475
Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Change-Id: I4b2f74492ac9e2c644659edab1e7ff05dddcbd20
cps-service/src/main/java/org/onap/cps/api/impl/CpsDataServiceImpl.java
cps-service/src/main/java/org/onap/cps/utils/XmlFileUtils.java
cps-service/src/main/java/org/onap/cps/utils/YangUtils.java