guava icon indicating copy to clipboard operation
guava copied to clipboard

Be clearer about what types we're catching.

Open copybara-service[bot] opened this issue 3 years ago • 0 comments

Be clearer about what types we're catching.

In particular, this helps make clearer that none of these particular catch blocks catch arbitrary checked exceptions—and thus that none of them catch InterruptedException.

Also, I've removed some catch (Throwable t) blocks from FakeTimeLimiter. They could never be hit, since previous blocks had caught both Error and Exception (in the case of Callable) or RuntimeException (in the case of Runnable).

RELNOTES=n/a

copybara-service[bot] avatar Apr 30 '22 00:04 copybara-service[bot]