diff options
author | 2019-04-04 09:24:37 +0000 | |
---|---|---|
committer | 2019-04-04 09:24:37 +0000 | |
commit | 9e91e644956951197e321b1b2a3cd2ec03a74ef0 (patch) | |
tree | 1041ccb9c123a6bfcc360cc179811a87bedf4ffe /artifactbroker/plugins/reception-plugins/src/main | |
parent | 012a14db776e9a6c24acecec2e46dac2b8611b65 (diff) | |
parent | 999748a64e72b9a7975ddac3406eb95a0b9aeaff (diff) |
Merge "add subplug for k8s to invoke Artifact forward support"
Diffstat (limited to 'artifactbroker/plugins/reception-plugins/src/main')
-rw-r--r-- | artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java b/artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java index 998527b..6b8f3b6 100644 --- a/artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java +++ b/artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java @@ -27,8 +27,9 @@ import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; +import java.util.ArrayList; import java.util.List; -import java.util.Map; +import java.util.HashMap; import org.onap.policy.common.logging.flexlogger.FlexLogger; import org.onap.policy.common.logging.flexlogger.Logger; @@ -220,8 +221,8 @@ public class SdcReceptionHandler extends AbstractReceptionHandler implements INo DistributionStatisticsManager.updateTotalDistributionCount(); List<String> relevantArtifactTypes = sdcConfig.getRelevantArtifactTypes(); Path path = Paths.get("/data"); - List<VfModuleModel> vfModuleModels = null; - Map<String, IArtifactInfo> artifactMap = null;//key is UUID, value is artifact for shared folder + ArrayList<VfModuleModel> vfModuleModels = new ArrayList<>(); + HashMap<String, IArtifactInfo> artifactMap = new HashMap<>();//key is UUID, value is artifact for shared folder String vfArtifactData = null; for (final IArtifactInfo artifact : resource.getArtifacts()) { |