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
2 files changed
tree: 2c632dc755930aa571b62a9d9a4a6be569836f0f
  1. auth/
  2. context/
  3. core/
  4. csit/
  5. examples/
  6. model/
  7. packages/
  8. plugins/
  9. releases/
  10. services/
  11. testsuites/
  12. tools/
  13. .gitignore
  14. .gitreview
  15. docker_build.sh
  16. docker_merge.sh
  17. docker_verify.sh
  18. INFO.yaml
  19. LICENSE.txt
  20. pom.xml
  21. README.md
  22. version.properties
README.md

Copyright (C) 2016-2018 Ericsson. All rights reserved. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode

This source repository contains the ONAP Policy APEX PDP Engine code. The settings file only needs to support the standard Maven repositories (e.g. central = http://repo1.maven.org/maven2/), and any proxy settings needed in your environment.

To build it using Maven 3, run: mvn clean install