Fix "Either re-interrupt this method or rethrow the "InterruptedException"." sonar bug

This commit is contained in:
cagache
2019-05-13 10:00:29 +03:00
parent f6a2008b4d
commit 929980e7c2

View File

@@ -642,6 +642,8 @@ public class BaseRMRestTest extends RestTest
} }
catch (InterruptedException e) catch (InterruptedException e)
{ {
// Restore interrupted state...
Thread.currentThread().interrupt();
} }
} }
@@ -690,6 +692,8 @@ public class BaseRMRestTest extends RestTest
} }
catch (InterruptedException e) catch (InterruptedException e)
{ {
// Restore interrupted state...
Thread.currentThread().interrupt();
} }
} }
@@ -739,6 +743,8 @@ public class BaseRMRestTest extends RestTest
} }
catch (InterruptedException e) catch (InterruptedException e)
{ {
// Restore interrupted state...
Thread.currentThread().interrupt();
} }
} }
result = searchApi.searchForNodePropertyAsUser(user.getUsername(), user.getPassword(), nodeRef, result = searchApi.searchForNodePropertyAsUser(user.getUsername(), user.getPassword(), nodeRef,