aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java
diff options
context:
space:
mode:
authordinesha <dineshgs@in.ibm.com>2019-08-06 16:49:16 +0530
committerdinesha <dineshgs@in.ibm.com>2019-08-06 16:49:32 +0530
commit682cd3f0c30423acc0a32b40c9b58bb334f8bbdc (patch)
treeb7eb2215443491da30b1db2492ad08248087d6c2 /vid-app-common/src/main/java
parent14cee6a0d0d1fe5eefb7ccc1eace9fc4cbd8b2eb (diff)
Sonar Fix- CommandParentData.java- Move this variable to comply with Java Code Conventions
Fixed Sonar issues accross the file Issue-ID: VID-547 Change-Id: I104df866f1e4e8477c954942ae69fe647028e621 Signed-off-by: dinesha <dineshgs@in.ibm.com>
Diffstat (limited to 'vid-app-common/src/main/java')
-rw-r--r--vid-app-common/src/main/java/org/onap/vid/job/command/CommandParentData.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/job/command/CommandParentData.java b/vid-app-common/src/main/java/org/onap/vid/job/command/CommandParentData.java
index 744b2fe39..45fc070e9 100644
--- a/vid-app-common/src/main/java/org/onap/vid/job/command/CommandParentData.java
+++ b/vid-app-common/src/main/java/org/onap/vid/job/command/CommandParentData.java
@@ -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);