What happened?
It's easy for people to write code like this with no failures:
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
Just rethrowing an exception like this is usually wrong because if the user is trying to abort, the calling thread will be unable to detect that an interruption happened and short-circuit.
What did you want to happen?
For the cases where people are re-throwing some unchecked exception, error-prone should suggest:
} catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
throw new RuntimeException(e);
}