From eac3e3faf11bca0903d6fdfe8cc0710b87cb6123 Mon Sep 17 00:00:00 2001 From: Jegadeesh Babu Date: Fri, 1 Mar 2019 19:46:41 +0530 Subject: Handled exception Sonar fix Issue-ID: APPC-1518 Change-Id: Ia052693a420bbd7b06048336d518a49e598b4265 Signed-off-by: Jegadeesh Babu --- .../src/main/java/org/onap/appc/sdc/listener/SdcCallback.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'appc-sdc-listener') diff --git a/appc-sdc-listener/appc-sdc-listener-bundle/src/main/java/org/onap/appc/sdc/listener/SdcCallback.java b/appc-sdc-listener/appc-sdc-listener-bundle/src/main/java/org/onap/appc/sdc/listener/SdcCallback.java index 541418fe8..516784c66 100644 --- a/appc-sdc-listener/appc-sdc-listener-bundle/src/main/java/org/onap/appc/sdc/listener/SdcCallback.java +++ b/appc-sdc-listener/appc-sdc-listener-bundle/src/main/java/org/onap/appc/sdc/listener/SdcCallback.java @@ -6,6 +6,8 @@ * ================================================================================ * Copyright (C) 2017 Amdocs * ============================================================================= + * Modifications Copyright (C) 2019 IBM + * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -142,6 +144,7 @@ public class SdcCallback implements INotificationCallback { executor.shutdownNow(); // In case of timeout } catch (InterruptedException e) { logger.error("Error in SdcCallback for stop(int waitSec) method due to InterruptedException: reason= " + e.getMessage(), e); + Thread.currentThread().interrupt(); } logger.info(String.format("Attempting to shutdown cleanly: %s", cleanShutdown ? "SUCCESS" : "FAILURE")); logger.info("Shutdown complete."); -- cgit 1.2.3-korg