Fix sonar issues in PAP 71/85371/3
authorJim Hahn <jrh3@att.com>
Mon, 15 Apr 2019 18:37:46 +0000 (14:37 -0400)
committerJim Hahn <jrh3@att.com>
Mon, 15 Apr 2019 21:29:44 +0000 (17:29 -0400)
commit8714a151ff87751b54c362c8a9248995e665e896
treec7becba4a7d3d77aae47ae2ff41d62314efb4186
parent7d8509acbf1a6ce1c0dc8bbd87e0a793420cafd4
Fix sonar issues in PAP

Moved methods into nested class of PdpModifyRequestMap.  Note: they
will have to be moved back out when the broadcast capability is
added.
Removed extra "continue" from Publisher.
Rather than remove unused parameters and cause significant clutter
to the code, chose to use the parameters in a logger call for RequestImpl.
Removed unnecessary cast from UpdateReq.
Use version constant in PapRestControllerV1.
Log exception in PdpGroupQueryControllerV1.
Log exception in PdpGroupStateChangeControllerV1.
Shortened functional in PdpGroupDeleteProvider.
Removed unnecessary type parameters from PdpGroupDeployProvider.
Removed unneeded parameter and exception from ProviderBase.
Extracted common string from Main.
Shorted functionals in PapActivator.
Changed uses of getCanonicalName() to getName(); the former only has
limited use, while the latter is typically what is wanted and is
actually required whenever forClass(name) is used.
Fix junit tests broken by rename of ToscaPolicy version from
"typeVersion" to "type_version".

Change-Id: Ia00e1b3541c9e25b196a951e45681f67aa7f1bfe
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
22 files changed:
main/src/main/java/org/onap/policy/pap/main/comm/PdpModifyRequestMap.java
main/src/main/java/org/onap/policy/pap/main/comm/Publisher.java
main/src/main/java/org/onap/policy/pap/main/comm/msgdata/RequestImpl.java
main/src/main/java/org/onap/policy/pap/main/comm/msgdata/UpdateReq.java
main/src/main/java/org/onap/policy/pap/main/rest/PapRestControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/PapRestServer.java
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupQueryControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupStateChangeControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeleteProvider.java
main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeployProvider.java
main/src/main/java/org/onap/policy/pap/main/rest/depundep/ProviderBase.java
main/src/main/java/org/onap/policy/pap/main/startstop/Main.java
main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java
main/src/main/java/org/onap/policy/pap/main/startstop/PapCommandLineArguments.java
main/src/test/java/org/onap/policy/pap/main/parameters/CommonTestData.java
main/src/test/resources/simpleDeploy/createGroupNewPolicy.json
main/src/test/resources/simpleDeploy/daoPolicyList.json
main/src/test/resources/simpleDeploy/policy.json
main/src/test/resources/simpleDeploy/upgradeGroupDao.json
main/src/test/resources/simpleDeploy/upgradeGroupPolicy2.json
main/src/test/resources/simpleDeploy/upgradeGroupPolicy3.json
main/src/test/resources/simpleDeploy/upgradeGroupPolicy4.json