From 0d4c5d297964592399f5455b85399d271b07adff Mon Sep 17 00:00:00 2001 From: cagache Date: Mon, 13 May 2019 10:00:29 +0300 Subject: [PATCH] Fix "Either re-interrupt this method or rethrow the "InterruptedException"." sonar bug (cherry picked from commit 82259209868793746191c0bac81867bc7d48b264) --- .../org/alfresco/rest/rm/community/base/BaseRMRestTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/base/BaseRMRestTest.java b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/base/BaseRMRestTest.java index ac3253c49c..17ff77c723 100644 --- a/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/base/BaseRMRestTest.java +++ b/rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/base/BaseRMRestTest.java @@ -652,6 +652,8 @@ public class BaseRMRestTest extends RestTest this.wait(waitInMilliSeconds); } catch (InterruptedException e) { + // Restore interrupted state... + Thread.currentThread().interrupt(); } } @@ -703,6 +705,8 @@ public class BaseRMRestTest extends RestTest } catch (InterruptedException e) { + // Restore interrupted state... + Thread.currentThread().interrupt(); } } @@ -752,6 +756,8 @@ public class BaseRMRestTest extends RestTest } catch (InterruptedException e) { + // Restore interrupted state... + Thread.currentThread().interrupt(); } } result = searchApi.searchForNodePropertyAsUser(user.getUsername(), user.getPassword(), nodeRef,