Sonar fixes for PAP "duplicate code" 63/86563/1
authorJim Hahn <jrh3@att.com>
Mon, 29 Apr 2019 17:02:35 +0000 (13:02 -0400)
committerJim Hahn <jrh3@att.com>
Mon, 29 Apr 2019 19:32:13 +0000 (15:32 -0400)
commit3bca010bdcb7b14d7bd3e7cd7b39ee1a562b27b4
treeb3f9b7ddeaa2d77ac3d6f086fb91dc89da5d4a3e
parentcccfb11b59becaaf86adc4c88600bd70f2519b0d
Sonar fixes for PAP "duplicate code"

Extracted common code from "delete" controller.
Extracted common code from "deploy" controller.
Not sure if this will actually fix the sonar issue or not.  If it's
really complaining about the code, then this should fix it.  On
the other hand, if it's complaining about the annotations, then
I don't think there's a way around it.

Change-Id: I7c68393f3fc1b9719987d850582bd8ed335b9663
Issue-ID: POLICY-1711
Signed-off-by: Jim Hahn <jrh3@att.com>
main/src/main/java/org/onap/policy/pap/main/rest/PapRestControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeleteControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/depundep/PdpGroupDeployControllerV1.java