ViMusic v0.5.4版本的 MD5 值为:e5d76df875234aa34db5af7d13eb379b
以下内容为反编译后的 c.java 源代码,内容仅作参考
package n9;
import a.g;
import a3.o;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.concurrent.LinkedBlockingQueue;
import org.slf4j.impl.StaticLoggerBinder;
import p9.e;
import z0.d;
public abstract class c {
public static volatile int f8195a;
public static final d f8196b = new d();
public static final o f8197c = new o();
public static boolean f8198d;
public static final String[] f8199e;
public static String f8200f;
static {
boolean equalsIgnoreCase;
String str = null;
try {
str = System.getProperty("slf4j.detectLoggerNameMismatch");
} catch (SecurityException unused) {
}
if (str == null) {
equalsIgnoreCase = false;
} else {
equalsIgnoreCase = str.equalsIgnoreCase("true");
}
f8198d = equalsIgnoreCase;
f8199e = new String[]{"1.6", "1.7"};
f8200f = "org/slf4j/impl/StaticLoggerBinder.class";
}
public static final void a() {
LinkedHashSet linkedHashSet;
try {
try {
try {
try {
if (!e()) {
linkedHashSet = b();
h(linkedHashSet);
} else {
linkedHashSet = null;
}
StaticLoggerBinder.getSingleton();
f8195a = 3;
g(linkedHashSet);
} catch (NoClassDefFoundError e10) {
String message = e10.getMessage();
boolean z9 = false;
if (message != null) {
if (message.contains("org/slf4j/impl/StaticLoggerBinder")) {
}
z9 = true;
}
if (z9) {
f8195a = 4;
e.n0("Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".");
e.n0("Defaulting to no-operation (NOP) logger implementation");
e.n0("See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.");
} else {
f8195a = 2;
e.o0("Failed to instantiate SLF4J LoggerFactory", e10);
throw e10;
}
}
f();
} catch (Exception e11) {
f8195a = 2;
e.o0("Failed to instantiate SLF4J LoggerFactory", e11);
throw new IllegalStateException("Unexpected initialization failure", e11);
}
} catch (NoSuchMethodError e12) {
String message2 = e12.getMessage();
if (message2 != null && message2.contains("org.slf4j.impl.StaticLoggerBinder.getSingleton()")) {
f8195a = 2;
e.n0("slf4j-api 1.6.x (or later) is incompatible with this binding.");
e.n0("Your binding is version 1.5.5 or earlier.");
e.n0("Upgrade your binding to version 1.6.x.");
}
throw e12;
}
} catch (Throwable th) {
f();
throw th;
}
}
public static LinkedHashSet b() {
LinkedHashSet linkedHashSet = new LinkedHashSet();
try {
ClassLoader classLoader = c.class.getClassLoader();
Enumeration<URL> systemResources = classLoader == null ? ClassLoader.getSystemResources(f8200f) : classLoader.getResources(f8200f);
while (systemResources.hasMoreElements()) {
linkedHashSet.add(systemResources.nextElement());
}
} catch (IOException e10) {
e.o0("Error getting resources from path", e10);
}
return linkedHashSet;
}
public static a c() {
if (f8195a == 0) {
synchronized (c.class) {
if (f8195a == 0) {
f8195a = 1;
a();
if (f8195a == 3) {
i();
}
}
}
}
int i10 = f8195a;
if (i10 != 1) {
if (i10 != 2) {
if (i10 != 3) {
if (i10 == 4) {
return f8197c;
}
throw new IllegalStateException("Unreachable code");
}
return StaticLoggerBinder.getSingleton().getLoggerFactory();
}
throw new IllegalStateException("org.slf4j.LoggerFactory in failed state. Original exception was thrown EARLIER. See also http://www.slf4j.org/codes.html#unsuccessfulInit");
}
return f8196b;
}
public static b d(String str) {
return c().c(str);
}
public static boolean e() {
String str = null;
try {
str = System.getProperty("java.vendor.url");
} catch (SecurityException unused) {
}
if (str == null) {
return false;
}
return str.toLowerCase().contains("android");
}
public static void f() {
boolean z9;
d dVar = f8196b;
synchronized (dVar) {
dVar.f14289q = true;
Iterator it2 = new ArrayList(((Map) dVar.f14290r).values()).iterator();
while (it2.hasNext()) {
p9.c cVar = (p9.c) it2.next();
cVar.f9341r = d(cVar.f9340q);
}
}
LinkedBlockingQueue linkedBlockingQueue = (LinkedBlockingQueue) f8196b.f14291s;
int size = linkedBlockingQueue.size();
ArrayList arrayList = new ArrayList(128);
int i10 = 0;
while (linkedBlockingQueue.drainTo(arrayList, 128) != 0) {
Iterator it3 = arrayList.iterator();
while (it3.hasNext()) {
o9.b bVar = (o9.b) it3.next();
if (bVar != null) {
p9.c cVar2 = bVar.f8877a;
String str = cVar2.f9340q;
if (cVar2.f9341r == null) {
z9 = true;
} else {
z9 = false;
}
if (!z9) {
if (!(cVar2.f9341r instanceof p9.b)) {
if (cVar2.b()) {
if (cVar2.b()) {
try {
cVar2.f9343t.invoke(cVar2.f9341r, bVar);
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException unused) {
}
}
} else {
e.n0(str);
}
}
} else {
throw new IllegalStateException("Delegate logger cannot be null at this state.");
}
}
int i11 = i10 + 1;
if (i10 == 0) {
if (bVar.f8877a.b()) {
e.n0("A number (" + size + ") of logging calls during the initialization phase have been intercepted and are");
e.n0("now being replayed. These are subject to the filtering rules of the underlying logging system.");
e.n0("See also http://www.slf4j.org/codes.html#replay");
} else if (!(bVar.f8877a.f9341r instanceof p9.b)) {
e.n0("The following set of substitute loggers may have been accessed");
e.n0("during the initialization phase. Logging calls during this");
e.n0("phase were not honored. However, subsequent logging calls to these");
e.n0("loggers will work as normally expected.");
e.n0("See also http://www.slf4j.org/codes.html#substituteLogger");
}
}
i10 = i11;
}
arrayList.clear();
}
d dVar2 = f8196b;
((Map) dVar2.f14290r).clear();
((LinkedBlockingQueue) dVar2.f14291s).clear();
}
public static void g(LinkedHashSet linkedHashSet) {
if (linkedHashSet != null) {
boolean z9 = true;
if (linkedHashSet.size() <= 1) {
z9 = false;
}
if (z9) {
StringBuilder s9 = g.s("Actual binding is of type [");
s9.append(StaticLoggerBinder.getSingleton().getLoggerFactoryClassStr());
s9.append("]");
e.n0(s9.toString());
}
}
}
public static void h(LinkedHashSet linkedHashSet) {
boolean z9 = true;
if (linkedHashSet.size() <= 1) {
z9 = false;
}
if (z9) {
e.n0("Class path contains multiple SLF4J bindings.");
Iterator it2 = linkedHashSet.iterator();
while (it2.hasNext()) {
e.n0("Found binding in [" + ((URL) it2.next()) + "]");
}
e.n0("See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.");
}
}
public static final void i() {
try {
String str = StaticLoggerBinder.REQUESTED_API_VERSION;
boolean z9 = false;
for (String str2 : f8199e) {
if (str.startsWith(str2)) {
z9 = true;
}
}
if (z9) {
return;
}
e.n0("The requested version " + str + " by your slf4j binding is not compatible with " + Arrays.asList(f8199e).toString());
e.n0("See http://www.slf4j.org/codes.html#version_mismatch for further details.");
} catch (NoSuchFieldError unused) {
} catch (Throwable th) {
e.o0("Unexpected problem occured during version sanity check", th);
}
}
}