I have code, which needs to wait a while as a part of busy-wait (due to legacy code I cannot change that much). I've read the reasoning why I should do that here [1] and [2], and it's presented as no-brainer rule of thumb. Do this always. IIUC it's sold as necessary because some code higher up call stack can be doing things like:
while (!Thread.currentThread().isInterrupted()) {
and without calling
Thread.currentThread().interrupt()
or rethrowing it would fail.
Now back to my case. I called minuscule method sleep. If I was woken up in the middle of busy wait, I don't care, I will sleep again if I have to. If there actually is a code interested in thread interrupted flag, I definitely don't want it to kick in, because I don't want to halt this operation, and in this case, swallowing without retry and without setting flag seems to be correct operation, however I did not see any mention, that swallow can be correct reaction in some situation.