BTGO游戏盒 v3.4.80版本的 MD5 值为:000032bab1addaabfdc671ee6a7087ab
以下内容为反编译后的 g.java 源代码,内容仅作参考
package s;
import android.support.v4.media.session.PlaybackStateCompat;
import java.io.File;
import java.io.IOException;
import java.util.Map;
public class g<E> extends m<E> {
public static String f25329q = "http://logback.qos.ch/codes.html#earlier_fa_collision";
public boolean f25330k = true;
public String f25331l = null;
public boolean f25332m = false;
public boolean f25333n = false;
public boolean f25334o = false;
public p0.m f25335p = new p0.m(PlaybackStateCompat.ACTION_PLAY_FROM_URI);
@Override
public void N(E e10) {
if (!this.f25333n && this.f25334o) {
this.f25333n = true;
if (Q()) {
addError("Collisions detected with FileAppender/RollingAppender instances defined earlier. Aborting.");
addError(f25329q);
} else {
try {
V(S());
super.start();
} catch (IOException e11) {
this.f25346a = false;
addError("openFile(" + this.f25331l + "," + this.f25330k + ") failed", e11);
}
}
}
super.N(e10);
}
public void P(String str, String str2, String str3) {
addError("'" + str + "' option has the same value \"" + str2 + "\" as that given for appender [" + str3 + "] defined earlier.");
}
public boolean Q() {
Map map;
boolean z10 = false;
if (this.f25331l == null || (map = (Map) this.context.getObject("FA_FILENAME_COLLISION_MAP")) == null) {
return false;
}
for (Map.Entry entry : map.entrySet()) {
if (this.f25331l.equals(entry.getValue())) {
P("File", (String) entry.getValue(), (String) entry.getKey());
z10 = true;
}
}
if (this.f25348c != null) {
map.put(getName(), this.f25331l);
}
return z10;
}
public final String R(String str) {
return (!p0.k.a() || new File(str).isAbsolute()) ? str : p0.n.H(this.context.getProperty("DATA_DIR"), str);
}
public String S() {
throw null;
}
public boolean T() {
return this.f25330k;
}
public boolean U() {
return this.f25332m;
}
public boolean V(String str) throws IOException {
String R = R(str);
this.f25343h.lock();
try {
File file = new File(R);
if (!p0.n.G(file)) {
addError("Failed to create parent directories for [" + file.getAbsolutePath() + "]");
}
i0.b bVar = new i0.b(file, this.f25330k, this.f25335p.a());
bVar.p(this.context);
M(bVar);
return true;
} finally {
this.f25343h.unlock();
}
}
public final String W() {
return this.f25331l;
}
public void X(boolean z10) {
this.f25330k = z10;
}
public void Y(String str) {
this.f25331l = str == null ? null : str.trim();
}
@Override
public void start() {
String str;
String S = S();
boolean z10 = true;
if (S != null) {
String R = R(S);
addInfo("File property is set to [" + R + "]");
if (this.f25332m && !T()) {
X(true);
addWarn("Setting \"Append\" property to true on account of \"Prudent\" mode");
}
if (this.f25334o) {
M(new l());
} else if (Q()) {
addError("Collisions detected with FileAppender/RollingAppender instances defined earlier. Aborting.");
str = f25329q;
} else {
try {
V(R);
} catch (IOException e10) {
addError("openFile(" + R + "," + this.f25330k + ") failed", e10);
}
}
z10 = false;
if (z10) {
super.start();
return;
}
return;
}
str = "\"File\" property not set for appender named [" + this.f25348c + "]";
addError(str);
if (z10) {
}
}
@Override
public void stop() {
super.stop();
Map<String, String> H = p0.g.H(this.context);
if (H == null || getName() == null) {
return;
}
H.remove(getName());
}
}