Sonar Major
[policy/engine.git] / 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());