Skip to content

Commit 2cf7196

Browse files
committed
移除注释代码
1 parent acaf0a4 commit 2cf7196

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

src/main/java/com/xwintop/xJavaFxTool/utils/XJavaFxSystemUtil.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -107,22 +107,11 @@ public boolean accept(File dir, String name) {
107107
public static void addJarClass(File jarFile) {
108108
try {
109109
Method method = URLClassLoader.class.getDeclaredMethod("addURL", URL.class);
110-
// boolean accessible = method.isAccessible(); // 获取方法的访问权限
111-
// try {
112-
// if (accessible == false) {
113110
method.setAccessible(true); // 设置方法的访问权限
114-
// }
115111
// 获取系统类加载器
116112
URLClassLoader classLoader = (URLClassLoader) ClassLoader.getSystemClassLoader();
117113
URL url = jarFile.toURI().toURL();
118-
// try {
119114
method.invoke(classLoader, url);
120-
// } catch (Exception e) {
121-
// e.printStackTrace();
122-
// }
123-
// } finally {
124-
// method.setAccessible(accessible);
125-
// }
126115
} catch (Exception e) {
127116
log.error("添加libs中jar包到系统中异常:", e);
128117
}

0 commit comments

Comments
 (0)