Fix sonar issues 90/119890/3
authorarkadiusz.adamski <aadamski@est.tech>
Wed, 24 Mar 2021 16:24:22 +0000 (16:24 +0000)
committerAjith Sreekumar <ajith.sreekumar@bell.ca>
Mon, 29 Mar 2021 17:36:22 +0000 (17:36 +0000)
commitfd5a6566d0e12540b4ac49b24603bae26666ab94
tree2c632dc755930aa571b62a9d9a4a6be569836f0f
parentc2f7bba321df740d134da7da1a19d7d38b867799
Fix sonar issues

- reduce methods Cognitive Complexity from 19 to the 15 allowed in CommandLineParser
- iteration replaced with bulk 'Collection.addAll' call
- remove redundant initializers
- replace try with try-with-resources

Issue-ID: POLICY-3093
Signed-off-by: arkadiusz.adamski <aadamski@est.tech>
Change-Id: Ia727b3145ef8f63bcfc07723191c85e1ec8c923c
auth/cli-editor/src/main/java/org/onap/policy/apex/auth/clieditor/CommandLineParser.java
services/services-engine/src/main/java/org/onap/policy/apex/service/engine/event/impl/filecarrierplugin/consumer/HeaderDelimitedTextBlockReader.java