From 82c84075c71e285d1009bbe7e183ad2f0358d335 Mon Sep 17 00:00:00 2001 From: Parshad Patel Date: Tue, 27 Nov 2018 15:36:08 +0900 Subject: Fix critical sonar issues Fix rethrow the "InterruptedException" and Use "isAssignableFrom" sonar issues Issue-ID: SDC-1895 Change-Id: I2cadc08b9e7acdc84cf25a3ce9d22199711afa5d Signed-off-by: Parshad Patel --- .../java/org/openecomp/sdc/notification/workers/NotificationWorker.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openecomp-be/lib/openecomp-sdc-notification-lib') diff --git a/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-worker/src/main/java/org/openecomp/sdc/notification/workers/NotificationWorker.java b/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-worker/src/main/java/org/openecomp/sdc/notification/workers/NotificationWorker.java index e8c2006d5c..cde6419aa8 100644 --- a/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-worker/src/main/java/org/openecomp/sdc/notification/workers/NotificationWorker.java +++ b/openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-worker/src/main/java/org/openecomp/sdc/notification/workers/NotificationWorker.java @@ -68,6 +68,7 @@ public class NotificationWorker { } public class Poller extends Thread { + @Override public void run() { try { while (!stopRunning) { @@ -77,6 +78,7 @@ public class NotificationWorker { } catch (InterruptedException e) { LOGGER.error("Interrupted Exception during Notification poller launch.", e); + Thread.currentThread().interrupt(); } } -- cgit 1.2.3-korg