We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11553ca commit 7bee549Copy full SHA for 7bee549
google-http-client/src/main/java/com/google/api/client/util/Throwables.java
@@ -75,12 +75,7 @@ public static RuntimeException propagate(Throwable throwable) {
75
*/
76
public static void propagateIfPossible(Throwable throwable) {
77
if (throwable != null) {
78
- if (throwable instanceof RuntimeException) {
79
- throw (RuntimeException) throwable;
80
- }
81
- if (throwable instanceof Error) {
82
- throw (Error) throwable;
83
+ com.google.common.base.Throwables.throwIfUnchecked(throwable);
84
}
85
86
0 commit comments