Sonar Fix- CommandParentData.java- Move this variable to comply with Java Code Conven... 79/92779/1
authordinesha <dineshgs@in.ibm.com>
Tue, 6 Aug 2019 11:19:16 +0000 (16:49 +0530)
committerdinesha <dineshgs@in.ibm.com>
Tue, 6 Aug 2019 11:19:32 +0000 (16:49 +0530)
Fixed Sonar issues accross the file

Issue-ID: VID-547
Change-Id: I104df866f1e4e8477c954942ae69fe647028e621
Signed-off-by: dinesha <dineshgs@in.ibm.com>
vid-app-common/src/main/java/org/onap/vid/job/command/CommandParentData.java

index 744b2fe..45fc070 100644 (file)
@@ -45,6 +45,10 @@ public class CommandParentData {
 
     private static final String RESOURCE_INSTANCE_IDS = "resourceInstancesIds";
     private static final String RESOURCE_MODEL_INFOS = "resourceModelInfos";
+       
+       private Map<CommandDataKey, String> resourceInstancesIds = new HashMap<>();
+    private Map<CommandDataKey, ModelInfo> resourceModelInfos = new HashMap<>();
+    private Action actionPhase = null;
 
     private final TypeReference<Map<CommandDataKey, String>> mapCommandKeyToString =
             new TypeReference<Map<CommandDataKey, String>> () {};
@@ -74,9 +78,6 @@ public class CommandParentData {
 
         return data;
     }
-    private Map<CommandDataKey, String> resourceInstancesIds = new HashMap<>();
-    private Map<CommandDataKey, ModelInfo> resourceModelInfos = new HashMap<>();
-    private Action actionPhase = null;
 
     public void addModelInfo(CommandDataKey modelInfoKey, ModelInfo modelInfo) {
         resourceModelInfos.put(modelInfoKey, modelInfo);