Fix more sonar issues in drools-pdp

Addressed issues of cyclomatic complexity and deep nesting by
refactoring code into separate methods.  In some cases, had to
refactor the code into nested classes to avoid passing too many
parameters to the newly extracted methods.
Addressed issue "too many conditionals" by breaking conditionals
apart.
Addressed issue "Remove usage of generic wildcard type" by eliminating
"? extends" from return values.
Addressed issue "Remove this use of 'Thread.sleep()'" in junit tests
by introducing latches or using Awaitility.

Note: this won't build until ApiUtils has been merged.

Change-Id: I0d5596b4cb918a36bc22f426f426bd238195b458
Issue-ID: POLICY-1968
Signed-off-by: Jim Hahn <jrh3@att.com>
21 files changed
tree: f152aea1578a82737501f56916ca07d8e7889d18
  1. api-active-standby-management/
  2. api-state-management/
  3. feature-active-standby-management/
  4. feature-controller-logging/
  5. feature-distributed-locking/
  6. feature-eelf/
  7. feature-healthcheck/
  8. feature-lifecycle/
  9. feature-mdc-filters/
  10. feature-pooling-dmaap/
  11. feature-session-persistence/
  12. feature-simulators/
  13. feature-state-management/
  14. feature-test-transaction/
  15. packages/
  16. policy-core/
  17. policy-management/
  18. policy-utils/
  19. releases/
  20. .gitignore
  21. .gitreview
  22. INFO.yaml
  23. LICENSE.txt
  24. lombok.config
  25. pom.xml
  26. README.md
  27. version.properties
README.md

Copyright 2018 AT&T Intellectual Property. 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 DroolsPDP code. To build it:

  1. using Maven 3
  2. git clone http://gerrit.onap.org/r/oparent and copy oparent/settings.xml to ~/.m2
  3. mvn clean install