From 86c4d2d93075a2cbd006ef006f1b7761c1d9832e Mon Sep 17 00:00:00 2001 From: Snigdha Sucharita Patra Date: Thu, 15 Feb 2018 13:49:16 +0530 Subject: sonar critical issue Either re-interrupt this method or rethrow the InterruptedException sonar Link: https://sonar.onap.org/project/issues?assignees=Snigdha503415&id=org.onap.dcaegen2.analytics.tca%3Adcae-analytics&open=AWFSduXsof9FJ6jfXJfX&resolved=false&severities=CRITICAL Location: src/main/java/org/onap/dcae/apod/analytics/cdap/tca/worker/TCADMaaPMockSubscriberWorker.java line No-121 Change-Id: Icee06bb62b87debda529d1f07193ed2e5009f97b Issue-ID: DCAEGEN2-345 Signed-off-by: Snigdha Sucharita Patra --- .../apod/analytics/cdap/tca/worker/TCADMaaPMockSubscriberWorker.java | 1 + 1 file changed, 1 insertion(+) (limited to 'dcae-analytics-cdap-tca') diff --git a/dcae-analytics-cdap-tca/src/main/java/org/onap/dcae/apod/analytics/cdap/tca/worker/TCADMaaPMockSubscriberWorker.java b/dcae-analytics-cdap-tca/src/main/java/org/onap/dcae/apod/analytics/cdap/tca/worker/TCADMaaPMockSubscriberWorker.java index e8130f3..155661c 100644 --- a/dcae-analytics-cdap-tca/src/main/java/org/onap/dcae/apod/analytics/cdap/tca/worker/TCADMaaPMockSubscriberWorker.java +++ b/dcae-analytics-cdap-tca/src/main/java/org/onap/dcae/apod/analytics/cdap/tca/worker/TCADMaaPMockSubscriberWorker.java @@ -120,6 +120,7 @@ public class TCADMaaPMockSubscriberWorker extends AbstractWorker { Thread.sleep(subscriberPollingInterval); } catch (InterruptedException e) { LOG.error("Error while sleeping"); + Thread.currentThread().interrupt(); throw new DCAEAnalyticsRuntimeException("Error while sleeping", LOG, e); } } -- cgit 1.2.3-korg