package retrofit2; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Objects; /* loaded from: classes.dex */ public final class Invocation { private final List arguments; private final Method method; public static Invocation of(Method method, List list) { Objects.requireNonNull(method, "method == null"); Objects.requireNonNull(list, "arguments == null"); return new Invocation(method, new ArrayList(list)); } /* JADX INFO: Access modifiers changed from: package-private */ public Invocation(Method method, List list) { this.method = method; this.arguments = Collections.unmodifiableList(list); } public final String toString() { return String.format("%s.%s() %s", this.method.getDeclaringClass().getName(), this.method.getName(), this.arguments); } public final Method method() { return this.method; } public final List arguments() { return this.arguments; } }