71 lines
2.7 KiB
Java
71 lines
2.7 KiB
Java
|
package com.google.android.gms.internal.firebase_ml;
|
||
|
|
||
|
import com.airbnb.deeplinkdispatch.UrlTreeKt;
|
||
|
import java.util.logging.Level;
|
||
|
import java.util.logging.Logger;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class zzla {
|
||
|
public static boolean zzbb(String str) {
|
||
|
return zzkq.zzba(str);
|
||
|
}
|
||
|
|
||
|
public static String zzb(String str, Object... objArr) {
|
||
|
int indexOf;
|
||
|
String valueOf = String.valueOf(str);
|
||
|
int i = 0;
|
||
|
if (objArr == null) {
|
||
|
objArr = new Object[]{"(Object[])null"};
|
||
|
} else {
|
||
|
for (int i2 = 0; i2 < objArr.length; i2++) {
|
||
|
objArr[i2] = zzl(objArr[i2]);
|
||
|
}
|
||
|
}
|
||
|
StringBuilder sb = new StringBuilder(valueOf.length() + (objArr.length * 16));
|
||
|
int i3 = 0;
|
||
|
while (i < objArr.length && (indexOf = valueOf.indexOf("%s", i3)) != -1) {
|
||
|
sb.append((CharSequence) valueOf, i3, indexOf);
|
||
|
sb.append(objArr[i]);
|
||
|
i3 = indexOf + 2;
|
||
|
i++;
|
||
|
}
|
||
|
sb.append((CharSequence) valueOf, i3, valueOf.length());
|
||
|
if (i < objArr.length) {
|
||
|
sb.append(" [");
|
||
|
sb.append(objArr[i]);
|
||
|
for (int i4 = i + 1; i4 < objArr.length; i4++) {
|
||
|
sb.append(", ");
|
||
|
sb.append(objArr[i4]);
|
||
|
}
|
||
|
sb.append(']');
|
||
|
}
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
private static String zzl(Object obj) {
|
||
|
try {
|
||
|
return String.valueOf(obj);
|
||
|
} catch (Exception e) {
|
||
|
String name = obj.getClass().getName();
|
||
|
String hexString = Integer.toHexString(System.identityHashCode(obj));
|
||
|
StringBuilder sb = new StringBuilder(String.valueOf(name).length() + 1 + String.valueOf(hexString).length());
|
||
|
sb.append(name);
|
||
|
sb.append('@');
|
||
|
sb.append(hexString);
|
||
|
String sb2 = sb.toString();
|
||
|
Logger logger = Logger.getLogger("com.google.common.base.Strings");
|
||
|
Level level = Level.WARNING;
|
||
|
String valueOf = String.valueOf(sb2);
|
||
|
logger.logp(level, "com.google.common.base.Strings", "lenientToString", valueOf.length() != 0 ? "Exception during lenientFormat for ".concat(valueOf) : new String("Exception during lenientFormat for "), (Throwable) e);
|
||
|
String name2 = e.getClass().getName();
|
||
|
StringBuilder sb3 = new StringBuilder(String.valueOf(sb2).length() + 9 + String.valueOf(name2).length());
|
||
|
sb3.append(UrlTreeKt.configurablePathSegmentPrefix);
|
||
|
sb3.append(sb2);
|
||
|
sb3.append(" threw ");
|
||
|
sb3.append(name2);
|
||
|
sb3.append(UrlTreeKt.configurablePathSegmentSuffix);
|
||
|
return sb3.toString();
|
||
|
}
|
||
|
}
|
||
|
}
|