Sonar Major 01/34901/1
authorSP00501638 <SP00501638@techmahindra.com>
Fri, 9 Mar 2018 06:10:44 +0000 (11:40 +0530)
committerSP00501638 <SP00501638@techmahindra.com>
Fri, 9 Mar 2018 06:11:10 +0000 (11:41 +0530)
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>
ONAP-PAP-REST/src/main/java/org/onap/policy/pap/xacml/rest/components/CreateNewMicroServiceModel.java

index af78956..d5233ce 100644 (file)
@@ -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());