Initial import of ADIF API reverse-engineering toolkit

This commit is contained in:
2025-12-16 08:37:56 +01:00
commit 60388529c1
11486 changed files with 1086536 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package retrofit2;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
/* loaded from: classes3.dex */
abstract class ServiceMethod<T> {
public static <T> ServiceMethod<T> parseAnnotations(Retrofit retrofit, Method method) {
RequestFactory parseAnnotations = RequestFactory.parseAnnotations(retrofit, method);
Type genericReturnType = method.getGenericReturnType();
if (Utils.hasUnresolvableType(genericReturnType)) {
throw Utils.methodError(method, "Method return type must not include a type variable or wildcard: %s", genericReturnType);
}
if (genericReturnType != Void.TYPE) {
return HttpServiceMethod.parseAnnotations(retrofit, method, parseAnnotations);
}
throw Utils.methodError(method, "Service methods cannot return void.", new Object[0]);
}
public abstract T invoke(Object[] objArr);
}