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

(cherry picked from commit 929980e7c2)
This commit is contained in:
cagache
2019-05-13 10:00:29 +03:00
parent c97adfaac4
commit b5d4d79fcb

View File

@@ -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,