- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
24 lines
593 B
Java
24 lines
593 B
Java
package okhttp3.internal;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public abstract class NamedRunnable implements Runnable {
|
|
public final String name;
|
|
|
|
public abstract void execute();
|
|
|
|
public NamedRunnable(String str, Object... objArr) {
|
|
this.name = Util.format(str, objArr);
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
String name = Thread.currentThread().getName();
|
|
Thread.currentThread().setName(this.name);
|
|
try {
|
|
execute();
|
|
} finally {
|
|
Thread.currentThread().setName(name);
|
|
}
|
|
}
|
|
}
|