2 ms·
Well, I agree the correct behaviour is to either swallow or throw, but I'd argue it is more like: try { Thread.sleep(1000); } catch (final Inte
by cbsmith 10y ago
Well, I agree the correct behaviour is to either swallow or throw, but I'd argue it is more like:
try {
Thread.sleep(1000);
} catch (final InterruptedException e) {
//never happens
throw new IllegalStateException(e);
}
or
try {
Thread.sleep(1000);
} catch (final InterruptedException e) {
LOG.info("Woken up early", e);
}