From 565a0054e3b01ef4a730651b7b82102c021c0972 Mon Sep 17 00:00:00 2001 From: "r.bogacki" Date: Wed, 10 Apr 2019 08:33:09 +0200 Subject: Fixed latest Sonar blocker issues Fixed blockers according to Sonar analysis. Change-Id: I2c2d053b66019b74ee20b0a56fb7b93bf931bb61 Issue-ID: SO-1734 Signed-off-by: Robert Bogacki Signed-off-by: Katsia Kazak --- .../svnfm/simulator/notifications/VnfInstantiationNotification.java | 3 +++ .../svnfm/simulator/notifications/VnfmAdapterCreationNotification.java | 3 +++ .../svnfm/simulator/notifications/VnfmAdapterDeletionNotification.java | 3 +++ 3 files changed, 9 insertions(+) (limited to 'vnfm-simulator/vnfm-service') diff --git a/vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/notifications/VnfInstantiationNotification.java b/vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/notifications/VnfInstantiationNotification.java index 3bf3d602c5..153970b053 100644 --- a/vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/notifications/VnfInstantiationNotification.java +++ b/vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/notifications/VnfInstantiationNotification.java @@ -2,6 +2,8 @@ * ============LICENSE_START======================================================= * Copyright (C) 2019 Nordix Foundation. * ================================================================================ + * Modifications Copyright (c) 2019 Samsung + * ================================================================================ * 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 @@ -37,6 +39,7 @@ public class VnfInstantiationNotification implements Runnable { Thread.sleep(10000); } catch (final InterruptedException e) { e.printStackTrace(); + Thread.currentThread().interrupt(); } System.out.println("Instantiation process finished"); } diff --git a/vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/notifications/VnfmAdapterCreationNotification.java b/vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/notifications/VnfmAdapterCreationNotification.java index 61d6f7e6c2..ff299ce12e 100644 --- a/vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/notifications/VnfmAdapterCreationNotification.java +++ b/vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/notifications/VnfmAdapterCreationNotification.java @@ -2,6 +2,8 @@ * ============LICENSE_START======================================================= * Copyright (C) 2019 Nordix Foundation. * ================================================================================ + * Modifications Copyright (c) 2019 Samsung + * ================================================================================ * 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 @@ -33,6 +35,7 @@ public class VnfmAdapterCreationNotification implements Runnable { Thread.sleep(10000); } catch (final InterruptedException e) { e.printStackTrace(); + Thread.currentThread().interrupt(); } System.out.println("Call to VNFM Adapter-Create"); } diff --git a/vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/notifications/VnfmAdapterDeletionNotification.java b/vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/notifications/VnfmAdapterDeletionNotification.java index 0ad7365d30..f7a8eaa2dd 100644 --- a/vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/notifications/VnfmAdapterDeletionNotification.java +++ b/vnfm-simulator/vnfm-service/src/main/java/org/onap/svnfm/simulator/notifications/VnfmAdapterDeletionNotification.java @@ -2,6 +2,8 @@ * ============LICENSE_START======================================================= * Copyright (C) 2019 Nordix Foundation. * ================================================================================ + * Modifications Copyright (c) 2019 Samsung + * ================================================================================ * 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 @@ -33,6 +35,7 @@ public class VnfmAdapterDeletionNotification implements Runnable { Thread.sleep(10000); } catch (final InterruptedException e) { e.printStackTrace(); + Thread.currentThread().interrupt(); } System.out.println("Call to VNFM Adapter-Delete"); } -- cgit 1.2.3-korg