Skip to content

Replace suggestion to use Throwables.propagate with Java 7 multi-catch #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iksnibarg
Copy link

Guava's Throwables.propagate got deprecated for good reasons: https://github.com/google/guava/wiki/Why-we-deprecated-Throwables.propagate

I'd suggest replacing suggestion to use Throwables.propagate with suggestion to use Java 7 multi-catch or removing mentioning usage of Throwables.propagate from this chapter completely.

I also do not feel good about mentioning catching of Throwables in the context of handling APIs that declare checked exceptions.

…use Java 7 multi-catch.

`Throwables.propagate` got deprecated for good reasons: https://github.com/google/guava/wiki/Why-we-deprecated-Throwables.propagate

Skipped mentioning catching `Throwable`s since that do not fit into the context of this chapter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant