in hadoop-api-shim/src/main/java/org/apache/hadoop/fs/shim/impl/ShimReflectionSupport.java [137:148]
public static <T> Invocation<T> loadInvocation(
Class<?> source, String name, Class<? extends T> returnType, Class<?>... parameterTypes) {
if (source == null) {
return unavailable(name);
}
try {
return new Invocation<T>(name, source.getMethod(name, parameterTypes));
} catch (NoSuchMethodException | SecurityException e) {
LOG.debug("Class {} does not implement {}", source, name);
return unavailable(name);
}
}