Improve Windows system detection

Use apache commons instead of terrifyingly fragile black magic.
master
jvoisin 5 years ago
parent bf5e8ef247
commit da34bf0d3f
  1. 3
      airsonic-main/src/main/java/org/airsonic/player/util/Util.java

@ -21,6 +21,7 @@ package org.airsonic.player.util;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.lang3.SystemUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.MultiValueMap;
@ -66,7 +67,7 @@ public final class Util {
}
public static boolean isWindows() {
return System.getProperty("os.name", "Windows").toLowerCase().startsWith("windows");
return SystemUtils.IS_OS_WINDOWS;
}
/**

Loading…
Cancel
Save