From b5d4d79fcb4e4353978d6693267e2e453271b641 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 929980e7c2327adbee38cf206c512d54f7f7130b) --- .../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,