diff options
author | adheli.tavares <adheli.tavares@est.tech> | 2023-10-12 13:07:28 +0100 |
---|---|---|
committer | adheli.tavares <adheli.tavares@est.tech> | 2023-10-12 13:33:51 +0100 |
commit | f0b1c5bf1662edf6a2a07b79c1ffe7e42e1bb054 (patch) | |
tree | 5456420b1c0e8f16455c65c248057e8fab4e9172 /plugins/reception-plugins | |
parent | 08ec52b6ed5ef7159087d708bddfa40d9ac03717 (diff) |
Remove AAF references from distribution.
Issue-ID: POLICY-4592
Change-Id: Ifa924a99a9429494052a1d36d4b7480b9ddce37d
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'plugins/reception-plugins')
-rw-r--r-- | plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java index ff915613..de44dc85 100644 --- a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java +++ b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandler.java @@ -1,7 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2018 Ericsson. All rights reserved. - * Copyright (C) 2019, 2022 Nordix Foundation. + * Copyright (C) 2019, 2022-2023 Nordix Foundation. * Modifications Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved. * Modifications Copyright (C) 2021 Bell Canada. All rights reserved. * ================================================================================ @@ -104,8 +104,7 @@ public class SdcReceptionHandler extends AbstractReceptionHandler implements INo */ private synchronized void changeSdcReceptionHandlerStatus(final SdcReceptionHandlerStatus newStatus) { switch (newStatus) { - case INIT: - case STOPPED: + case INIT, STOPPED: sdcReceptionHandlerStatus = newStatus; break; case IDLE: @@ -212,7 +211,10 @@ public class SdcReceptionHandler extends AbstractReceptionHandler implements INo "Failed to deploy the artifact due to: " + exp.getMessage()); } } - if (artifactsProcessedSuccessfully) { + + // NoSonar here for complaining about var not changing, when, in fact, + // can change to false when Exceptions are triggered. + if (artifactsProcessedSuccessfully) { // NOSONAR DistributionStatisticsManager.updateDistributionSuccessCount(); sendComponentDoneStatus(notificationData.getDistributionID(), DistributionStatusEnum.COMPONENT_DONE_OK, null); @@ -379,7 +381,7 @@ public class SdcReceptionHandler extends AbstractReceptionHandler implements INo } private File safelyCreateFile(String prefix) throws IOException { - File file = Files.createTempFile(prefix, ".csar").toFile(); + File file = Files.createTempFile(prefix, ".csar").toFile(); // NOSONAR if (file.setReadable(true, false) && file.setWritable(true, true)) { return file; |