From c4659ab8fccad95e6b85a507619952d7f1594ea7 Mon Sep 17 00:00:00 2001 From: lee Date: Thu, 18 Jan 2018 20:58:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E5=BC=B9?= =?UTF-8?q?=E5=87=BA=E6=B5=8F=E8=A7=88=E5=99=A8=E5=AF=BC=E8=87=B4task?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=89=A7=E8=A1=8C=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/java/lee/study/down/util/OsUtil.java | 8 ++++++-- update/pom.xml | 2 +- update/update.iml | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/lee/study/down/util/OsUtil.java b/common/src/main/java/lee/study/down/util/OsUtil.java index 942f3d74..a5f748b8 100644 --- a/common/src/main/java/lee/study/down/util/OsUtil.java +++ b/common/src/main/java/lee/study/down/util/OsUtil.java @@ -7,9 +7,13 @@ import java.io.InputStream; import java.net.ServerSocket; import java.net.URI; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; public class OsUtil { + private static final Logger LOGGER = LoggerFactory.getLogger(OsUtil.class); + private static final String REG_HEAD = "reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\" /v "; private static final String REG_TAIL = " /f"; private static final String PROXY_ENABLE_KEY = "ProxyEnable "; @@ -74,10 +78,10 @@ public static void openBrowse(String url) { URI uri = new URI(url); desktop.browse(uri); } catch (Exception e) { - throw new RuntimeException("can't open browse", e); + LOGGER.error("can't open browse", e); } } else { - throw new RuntimeException("don't support browse"); + LOGGER.error("don't support browse"); } } diff --git a/update/pom.xml b/update/pom.xml index 42e6bd1e..c8fc939b 100644 --- a/update/pom.xml +++ b/update/pom.xml @@ -7,7 +7,7 @@ lee.study proxyee-down-update jar - 2.0 + 2.01 UTF-8 diff --git a/update/update.iml b/update/update.iml index 39a59270..18f68424 100644 --- a/update/update.iml +++ b/update/update.iml @@ -11,6 +11,6 @@ - + \ No newline at end of file