From bc14edab0654ce86dfe37d355261fad1bedbf9d5 Mon Sep 17 00:00:00 2001 From: Khashayar Etemadi Date: Fri, 3 Dec 2021 22:10:12 +0100 Subject: [PATCH] Fix violations of Sonar rule 2142 --- .../lianjiatech/retrofit/spring/boot/retry/RetryStrategy.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/github/lianjiatech/retrofit/spring/boot/retry/RetryStrategy.java b/src/main/java/com/github/lianjiatech/retrofit/spring/boot/retry/RetryStrategy.java index aefc243..c8fe882 100644 --- a/src/main/java/com/github/lianjiatech/retrofit/spring/boot/retry/RetryStrategy.java +++ b/src/main/java/com/github/lianjiatech/retrofit/spring/boot/retry/RetryStrategy.java @@ -25,6 +25,7 @@ private void waitUntilNextTry() { try { Thread.sleep(intervalMs); } catch (InterruptedException ignored) { + Thread.currentThread().interrupt(); } } }