/**
 * 
 */
package com.github.phantomthief.util;

/**
 * @author w.vela
 */
public interface ThrowableSupplier<T, X extends Throwable> {

    T get() throws X;
}

@@ -153,11 +153,136 @@
 hrows X;
+%0A%0A    static %3CT, X extends Throwable%3E ThrowableSupplier%3CT, X%3E cast(ThrowableSupplier%3CT, X%3E func) %7B%0A        return func;%0A    %7D
 %0A%7D%0A

add factory method for generic type ref.