More Sonar fixes

This commit is contained in:
Artem Bilan
2022-11-03 15:09:36 -04:00
parent 53d044814f
commit 7084e9654a
8 changed files with 59 additions and 49 deletions

View File

@@ -257,10 +257,10 @@ public abstract class TestUtils {
try {
sent = errorChannel.send(new ErrorMessage(throwable), 10000); // NOSONAR
}
catch (Throwable errorDeliveryError) { //NOSONAR
catch (Throwable errorDeliveryError) { // NOSONAR
// message will be logged only
logger.warn("Error message was not delivered.", errorDeliveryError);
if (errorDeliveryError instanceof Error) { // NOSONAR
if (errorDeliveryError instanceof Error) { // NOSONAR
throw (Error) errorDeliveryError;
}
}