Sonar:Critical 27/30427/2
authorAS00465059 <AS00465059@techmahindra.com>
Wed, 21 Feb 2018 05:48:19 +0000 (11:18 +0530)
committerAS00465059 <AS00465059@techmahindra.com>
Wed, 21 Feb 2018 05:49:21 +0000 (11:19 +0530)
Fixing MsoCommonUtils.java
MsoCommonUtils.java: L130 L145

Link: https://sonar.onap.org/issues/search#resolved=false|severities=MAJOR|rules=squid%3AS2293|assignees=__me__
Location:src/main/java/org/openecomp/mso/openstack/utils/MsoCommonUtils.java

Change-Id: I120d35a9c06f56dd82b50f248062fc38e60c0819
Issue-ID: SO-401
Signed-off-by: AS00465059 <AS00465059@techmahindra.com>
adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/openstack/utils/MsoCommonUtils.java

index 269f6b0..7d6de31 100644 (file)
@@ -129,6 +129,7 @@ public class MsoCommonUtils {
                                        Thread.sleep (retryDelay * 1000L);
                                } catch (InterruptedException e1) {
                         logger.debug ("Thread interrupted while sleeping", e1);
+                                               Thread.currentThread().interrupt();
                                }
                        }
                        else
@@ -144,6 +145,7 @@ public class MsoCommonUtils {
                                        Thread.sleep (retryDelay * 1000L);
                                } catch (InterruptedException e1) {
                         logger.debug ("Thread interrupted while sleeping", e1);
+                                               Thread.currentThread().interrupt();
                                }
                        }
                        else