24 lines
843 B
Java
24 lines
843 B
Java
package i0.e0.b;
|
|
|
|
import c.d.b.a.a;
|
|
import i0.h;
|
|
import java.io.IOException;
|
|
import okhttp3.ResponseBody;
|
|
/* compiled from: ScalarResponseBodyConverters */
|
|
public final class d implements h<ResponseBody, Character> {
|
|
public static final d a = new d();
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
|
@Override // i0.h
|
|
public Character convert(ResponseBody responseBody) throws IOException {
|
|
String d = responseBody.d();
|
|
if (d.length() == 1) {
|
|
return Character.valueOf(d.charAt(0));
|
|
}
|
|
StringBuilder K = a.K("Expected body of length 1 for Character conversion but was ");
|
|
K.append(d.length());
|
|
throw new IOException(K.toString());
|
|
}
|
|
}
|