diff options
author | r.bogacki <r.bogacki@samsung.com> | 2019-04-10 08:33:09 +0200 |
---|---|---|
committer | r.bogacki <r.bogacki@samsung.com> | 2019-04-10 16:18:57 +0200 |
commit | 565a0054e3b01ef4a730651b7b82102c021c0972 (patch) | |
tree | c936d7ba3d0b3d46b19b58a18eccf0186efeb9a0 /vnfm-simulator/vnfm-service/src/main/java | |
parent | ed66a29ce8e0068740466e13fa6517791cce9aeb (diff) |
Fixed latest Sonar blocker issues
Fixed blockers according to Sonar analysis.
Change-Id: I2c2d053b66019b74ee20b0a56fb7b93bf931bb61
Issue-ID: SO-1734
Signed-off-by: Robert Bogacki <r.bogacki@samsung.com>
Signed-off-by: Katsia Kazak <k.kazak@samsung.com>
Diffstat (limited to 'vnfm-simulator/vnfm-service/src/main/java')
3 files changed, 9 insertions, 0 deletions
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"); } |