瀏覽代碼

removed unnecessary import

Armin Schrenk 1 年之前
父節點
當前提交
7a0d50ecca
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      src/main/java/org/cryptomator/ui/error/ErrorController.java

+ 3 - 4
src/main/java/org/cryptomator/ui/error/ErrorController.java

@@ -2,7 +2,6 @@ package org.cryptomator.ui.error;
 
 import com.fasterxml.jackson.core.type.TypeReference;
 import com.fasterxml.jackson.databind.ObjectMapper;
-import org.apache.commons.lang3.SystemUtils;
 import org.cryptomator.common.Environment;
 import org.cryptomator.common.ErrorCode;
 import org.cryptomator.common.Nullable;
@@ -147,9 +146,9 @@ public class ErrorController implements FxController {
 		String userAgent = USER_AGENT_FORMAT.formatted( //
 				environment.getAppVersion(), //
 				environment.getBuildNumber().orElse("undefined"), //
-				SystemUtils.OS_NAME, //
-				SystemUtils.OS_VERSION, //
-				SystemUtils.OS_ARCH); //
+				System.getProperty("os.name"), //
+				System.getProperty("os.version"), //
+				System.getProperty("os.arch"));
 		isLoadingHttpResponse.set(true);
 		askedForLookupDatabasePermission.set(true);
 		HttpClient httpClient = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();