aboutsummaryrefslogtreecommitdiffstats
path: root/vnfm-simulator/vnfm-service/src
diff options
context:
space:
mode:
authork.kazak <k.kazak@samsung.com>2019-05-02 11:58:21 +0200
committerKatsia Kazak <k.kazak@samsung.com>2019-05-07 10:34:05 +0000
commit95ff3e1578b1ea0307313d4091f6881b3d05cb59 (patch)
treeb32558a7f7e0c4d5d9ae0652ba4484c362a35e04 /vnfm-simulator/vnfm-service/src
parent7af16eec7a5ea196de57b47b918d3d88390a715c (diff)
fix newest sonar bugs
OperationProgressor: restore interrupted state PnfEventReadyDmaapClient: remove useless check for null that never happens Test for this case already exists in PnfEventReadyDmaapClientTest.pnfCorrelationIdIsNotFoundInHttpResponse Change-Id: Ic7e4d0cb701721ee4d9a8bc46d65dc1d847d7704 Issue-ID: SO-1811 Signed-off-by: k.kazak <k.kazak@samsung.com>
Diffstat (limited to 'vnfm-simulator/vnfm-service/src')
-rw-r--r--vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/services/OperationProgressor.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/services/OperationProgressor.java b/vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/services/OperationProgressor.java
index 1e31ab2fdb..218cc2de03 100644
--- a/vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/services/OperationProgressor.java
+++ b/vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/services/OperationProgressor.java
@@ -107,6 +107,8 @@ public abstract class OperationProgressor implements Runnable {
Thread.sleep(milliSeconds);
} catch (final InterruptedException e) {
operation.setOperationState(InlineResponse200.OperationStateEnum.FAILED);
+ // Restore interrupted state
+ Thread.currentThread().interrupt();
}
}