summaryrefslogtreecommitdiffstats
path: root/ONAP-PAP-REST/src/main
diff options
context:
space:
mode:
authorSP00501638 <SP00501638@techmahindra.com>2018-03-09 11:40:44 +0530
committerSP00501638 <SP00501638@techmahindra.com>2018-03-09 11:41:10 +0530
commit5da8e441ca7b51cdb9231585d6e9c5a09c76e8c5 (patch)
tree2b9f8ef0a7a067772df9613e7431dd355674381e /ONAP-PAP-REST/src/main
parent6bbf4b8162902e72dbaf50138a5f3cc4a95fa0c7 (diff)
Sonar Major
Remove this useless assignment to local variable temp CreateNewMicroServiceModel.java:L195 Sonar Link: https://sonar.onap.org/issues?assignees=swapnalipode&open=AV2blOqq5bp_wwmIUQr6&resolved=false Location: src/main/java/org/onap/policy/pap/xacml/rest/components/CreateNewMicroServiceModel.java Change-Id: Icdd79502962e1173d83bca442d2d739b058932ba Issue-ID: POLICY-682 Signed-off-by: SP00501638 <SP00501638@techmahindra.com>
Diffstat (limited to 'ONAP-PAP-REST/src/main')
-rw-r--r--ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/CreateNewMicroServiceModel.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/CreateNewMicroServiceModel.java b/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/CreateNewMicroServiceModel.java
index af7895695..d5233ce3d 100644
--- a/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/CreateNewMicroServiceModel.java
+++ b/ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/CreateNewMicroServiceModel.java
@@ -192,7 +192,7 @@ public class CreateNewMicroServiceModel {
dependency = utils.getFullDependencyList(dependency, classMap);
if (!dependency.isEmpty()){
for (String element : dependency){
- MSAttributeObject temp = new MSAttributeObject();
+ MSAttributeObject temp;
if (classMap.containsKey(element)){
temp = classMap.get(element);
mainClass.addAllRefAttribute(temp.getRefAttribute());