Merge branch 'v6-dev' of gitee.com:dromara/hutool into v6-dev

This commit is contained in:
Looly
2024-05-28 17:35:35 +08:00

View File

@@ -175,7 +175,7 @@ public class JarClassLoader extends URLClassLoader {
*/ */
private static boolean isJarFile(final File file) { private static boolean isJarFile(final File file) {
return FileUtil.isFile(file) && return FileUtil.isFile(file) &&
FileNameUtil.isType(file.getName(), FileNameUtil.EXT_JAR); FileNameUtil.isType(file.getName(), "jar");
} }
// ------------------------------------------------------------------- Private method end // ------------------------------------------------------------------- Private method end
} }