This commit is contained in:
Gary Gregory 2022-10-25 10:02:41 -04:00
parent b4ef495751
commit 0659831ad4

View File

@ -201,13 +201,13 @@ public static <T, R> Function<T, R> asFunction(final Method method) {
* </p>
*
* @param <T> The interface type.
* @param intfc The interface type.
* @param interfaceClass a class object representing {@code T}.
* @param method the method to invoke.
* @return a correctly-typed wrapper for the given target.
* @see MethodHandleProxies#asInterfaceInstance(Class, MethodHandle)
*/
public static <T> T asInterfaceInstance(final Class<T> intfc, final Method method) {
return MethodHandleProxies.asInterfaceInstance(Objects.requireNonNull(intfc, "intfc"), unreflectUnchecked(method));
public static <T> T asInterfaceInstance(final Class<T> interfaceClass, final Method method) {
return MethodHandleProxies.asInterfaceInstance(Objects.requireNonNull(interfaceClass, "interfaceClass"), unreflectUnchecked(method));
}
/**