parent
e3cf41c9fb
commit
99698a5272
@ -38,7 +38,7 @@ public final class DetectionUtil {
|
|||||||
private static final boolean HAS_UNSAFE = hasUnsafe(AtomicInteger.class.getClassLoader());
|
private static final boolean HAS_UNSAFE = hasUnsafe(AtomicInteger.class.getClassLoader());
|
||||||
private static final boolean IS_WINDOWS;
|
private static final boolean IS_WINDOWS;
|
||||||
static {
|
static {
|
||||||
String os = SystemPropertyUtil.get("os.name").toLowerCase();
|
String os = SystemPropertyUtil.get("os.name", "").toLowerCase();
|
||||||
// windows
|
// windows
|
||||||
IS_WINDOWS = os.indexOf("win") >= 0;
|
IS_WINDOWS = os.indexOf("win") >= 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user