From 929980e7c2327adbee38cf206c512d54f7f7130b 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 --- .../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 4ecf318e2a..fccd1bf693 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 @@ -642,6 +642,8 @@ public class BaseRMRestTest extends RestTest } catch (InterruptedException e) { + // Restore interrupted state... + Thread.currentThread().interrupt(); } } @@ -690,6 +692,8 @@ public class BaseRMRestTest extends RestTest } catch (InterruptedException e) { + // Restore interrupted state... + Thread.currentThread().interrupt(); } } @@ -739,6 +743,8 @@ public class BaseRMRestTest extends RestTest } catch (InterruptedException e) { + // Restore interrupted state... + Thread.currentThread().interrupt(); } } result = searchApi.searchForNodePropertyAsUser(user.getUsername(), user.getPassword(), nodeRef,