Don't Swallow InterruptedException
#
Doing nothing with the exception restores the interrupted flag to false. Calling Thread.currentThread().interrupt() keeps the flag set to true so you can do something about it. I did not know this.
Doing nothing with the exception restores the interrupted flag to false. Calling Thread.currentThread().interrupt() keeps the flag set to true so you can do something about it. I did not know this.