Fix sonars in policy-pap

Fixed:
- use "var" instead of actual type
- remove unused parameter
- remove un-thrown exception from method declaration
- call isPresent() before Optional.get()
- check empty list before invoking doesNotContain()

Issue-ID: POLICY-3285
Change-Id: Ic90dccfd591c102ce29f14084f025b3ca69587dc
Signed-off-by: Jim Hahn <jrh3@att.com>
33 files changed
tree: 921e378cdce276092a11261d9d094e8c96f3f5cf
  1. csit/
  2. main/
  3. packages/
  4. postman/
  5. releases/
  6. testsuites/
  7. .gitignore
  8. .gitreview
  9. INFO.yaml
  10. LICENSE.txt
  11. lombok.config
  12. pom.xml
  13. README.md
  14. version.properties
README.md

Copyright 2017-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 Administration Point Backend code.

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