From 682cd3f0c30423acc0a32b40c9b58bb334f8bbdc Mon Sep 17 00:00:00 2001 From: dinesha Date: Tue, 6 Aug 2019 16:49:16 +0530 Subject: 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 --- .../src/main/java/org/onap/vid/job/command/CommandParentData.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'vid-app-common') 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 resourceInstancesIds = new HashMap<>(); + private Map resourceModelInfos = new HashMap<>(); + private Action actionPhase = null; private final TypeReference> mapCommandKeyToString = new TypeReference> () {}; @@ -74,9 +78,6 @@ public class CommandParentData { return data; } - private Map resourceInstancesIds = new HashMap<>(); - private Map resourceModelInfos = new HashMap<>(); - private Action actionPhase = null; public void addModelInfo(CommandDataKey modelInfoKey, ModelInfo modelInfo) { resourceModelInfos.put(modelInfoKey, modelInfo); -- cgit 1.2.3-korg