Skip to content

Commit 1ee0114

Browse files
committed
1.优化部分警告代码
1 parent 84bcbbc commit 1ee0114

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

developTools/x-PathWatchTool/src/main/java/com/xwintop/xJavaFxTool/services/developTools/PathWatchToolService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void watchAction() throws Exception {
4747
return;
4848
}
4949
if (thread != null) {
50-
thread.stop();
50+
thread.interrupt();
5151
}
5252
boolean fileNameSRegex = pathWatchToolController.getFileNameSupportRegexCheckBox().isSelected();
5353
String fileNameContains = pathWatchToolController.getFileNameContainsTextField().getText();
@@ -138,7 +138,7 @@ public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) th
138138

139139
public void stopWatchAction() {
140140
if (thread != null) {
141-
thread.stop();
141+
thread.interrupt();
142142
thread = null;
143143
}
144144
}

0 commit comments

Comments
 (0)