22 lines
639 B
Java
22 lines
639 B
Java
package i0.e0.b;
|
|
|
|
import i0.h;
|
|
import java.io.IOException;
|
|
import okhttp3.MediaType;
|
|
import okhttp3.RequestBody;
|
|
/* compiled from: ScalarRequestBodyConverter */
|
|
public final class a<T> implements h<T, RequestBody> {
|
|
public static final a<Object> a = new a<>();
|
|
public static final MediaType b = MediaType.a.a("text/plain; charset=UTF-8");
|
|
|
|
static {
|
|
MediaType.a aVar = MediaType.f2875c;
|
|
}
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
@Override // i0.h
|
|
public RequestBody convert(Object obj) throws IOException {
|
|
return RequestBody.create(b, String.valueOf(obj));
|
|
}
|
|
}
|