what-the-bank/sources/com/facetec/sdk/ew.java

53 lines
1.3 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.facetec.sdk;
/* loaded from: classes.dex */
public final class ew {
private static final int b;
private static int a(String str) {
try {
String[] split = str.split("[._]");
int parseInt = Integer.parseInt(split[0]);
return (parseInt != 1 || split.length <= 1) ? parseInt : Integer.parseInt(split[1]);
} catch (NumberFormatException unused) {
return -1;
}
}
private static int b(String str) {
try {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < str.length(); i++) {
char charAt = str.charAt(i);
if (!Character.isDigit(charAt)) {
break;
}
sb.append(charAt);
}
return Integer.parseInt(sb.toString());
} catch (NumberFormatException unused) {
return -1;
}
}
static {
String property = System.getProperty("java.version");
int a = a(property);
if (a == -1) {
a = b(property);
}
if (a == -1) {
a = 6;
}
b = a;
}
public static int d() {
return b;
}
public static boolean b() {
return b >= 9;
}
}