google / guava

Google core libraries for Java
Apache License 2.0
50.25k stars 10.91k forks source link

Replace deprecated Throwables.propagate with throwIfUnchecked and direct exception throwing in SubscriberRegistry, MoreExecutors #7434

Closed panic08 closed 1 month ago

panic08 commented 1 month ago

The suggestion here is to change the use of the deprecated Throwables.propagate() in the SubscriberRegistry.java, MoreExecutors.java classes to the alternative that is recommended in the documentation for this method:

Throwables.throwIfUnchecked(e);
throw new RuntimeException(e.getCause());
cpovirk commented 1 month ago

I wanted to make sure that I came back and said something here because this PR prompted a bunch of activity :)