fix.убрал из общей(в перспективе библиотечной) части ссылки на частные объекты визуализатора
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
package Common.Utils;
|
||||
import _VisualDVM.Constants;
|
||||
import Common.CommonConstants;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
|
||||
import java.io.File;
|
||||
@@ -8,12 +8,12 @@ public class InterruptThread extends Thread {
|
||||
//------------
|
||||
public InterruptThread(int sleep_ms, Callable action) {
|
||||
super(() -> {
|
||||
File interruptFile = new File(Constants.INTERRUPT);
|
||||
File interruptFile = new File(CommonConstants.INTERRUPT);
|
||||
try {
|
||||
while (true) {
|
||||
Thread.sleep(sleep_ms);
|
||||
if (interruptFile.exists()) {
|
||||
FileUtils.writeStringToFile(new File(Constants.ABORTED), "");
|
||||
FileUtils.writeStringToFile(new File(CommonConstants.ABORTED), "");
|
||||
FileUtils.forceDelete(interruptFile);
|
||||
action.call();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user