Commit 45dea0c8 authored by zengtianlai3's avatar zengtianlai3

解决比较Locale相关的数据未指定适当的Locale

parent 52be6d5f
...@@ -85,7 +85,7 @@ public class CommonUtil { ...@@ -85,7 +85,7 @@ public class CommonUtil {
public static String getLibFilePathByFileName(String fileName) { public static String getLibFilePathByFileName(String fileName) {
String os = System.getProperty("os.name"); String os = System.getProperty("os.name");
String serverParentDirectory = getServerParentDirectory(); String serverParentDirectory = getServerParentDirectory();
if (os.toLowerCase().startsWith("win")) { if (os.toLowerCase(Locale.ENGLISH).startsWith("win")) {
return serverParentDirectory + File.separator + "lib" + File.separator + fileName + ".dll"; return serverParentDirectory + File.separator + "lib" + File.separator + fileName + ".dll";
} else { } else {
return serverParentDirectory + File.separator + "lib" + File.separator + fileName + ".so"; return serverParentDirectory + File.separator + "lib" + File.separator + fileName + ".so";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment