Skip to content

Commit 56b772b

Browse files
committed
<T> extends Throwable
1 parent ed0bbd6 commit 56b772b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/nordstrom/common/base/UncheckedThrow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static RuntimeException throwUnchecked(final Throwable thrown) {
3636
* @throws T dummy declaration to satisfy the compiler
3737
*/
3838
@SuppressWarnings("unchecked")
39-
private static <T extends Exception> void propagate(Throwable thrown) throws T {
39+
private static <T extends Throwable> void propagate(Throwable thrown) throws T {
4040
// Due to generic type erasure, this cast only serves to satisfy the compiler
4141
// that the requirement to declare the thrown exception has been met.
4242
throw (T) thrown;

0 commit comments

Comments
 (0)