mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
修复WatchUtil createModify maxDepth传递后没有使用问题
This commit is contained in:
parent
d192a53bbb
commit
f36c83421e
@ -20,6 +20,7 @@
|
||||
* 【core 】 修复DateUtil针对ISO8601时间格式部分场景下的解析存在问题(issue#2981@Github)
|
||||
* 【core 】 修复JSONUtil.toBean可能的空指针问题(issue#2987@Github)
|
||||
* 【core 】 修复CalendarUtil.isSameMonth没有判断公元前导致不一致的问题(issue#3011@Github)
|
||||
* 【core 】 修复WatchUtil createModify maxDepth传递后没有使用问题(issue#3005@Github)
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
# 5.8.15 (2023-03-09)
|
||||
|
@ -1,14 +1,14 @@
|
||||
package cn.hutool.core.io.watch;
|
||||
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import cn.hutool.core.util.URLUtil;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
import java.net.URL;
|
||||
import java.nio.file.*;
|
||||
|
||||
import cn.hutool.core.io.IORuntimeException;
|
||||
import cn.hutool.core.util.URLUtil;
|
||||
|
||||
/**
|
||||
* 监听工具类<br>
|
||||
* 主要负责文件监听器的快捷创建
|
||||
@ -199,7 +199,7 @@ public class WatchUtil {
|
||||
* @return {@link WatchMonitor}
|
||||
*/
|
||||
public static WatchMonitor createAll(File file, int maxDepth, Watcher watcher) {
|
||||
return createAll(file.toPath(), 0, watcher);
|
||||
return createAll(file.toPath(), maxDepth, watcher);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -323,7 +323,7 @@ public class WatchUtil {
|
||||
* @since 4.5.2
|
||||
*/
|
||||
public static WatchMonitor createModify(File file, int maxDepth, Watcher watcher) {
|
||||
return createModify(file.toPath(), 0, watcher);
|
||||
return createModify(file.toPath(), maxDepth, watcher);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user