mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
return vfs cleanup
This commit is contained in:
+3
-3
@@ -361,15 +361,15 @@ public class VirtualDirectoryImpl extends VirtualFileSystemEntry {
|
||||
|
||||
@TestOnly
|
||||
public synchronized void cleanupCachedChildren(Set<VirtualFile> survivors) {
|
||||
if (survivors.contains(this)) {
|
||||
/*if (survivors.contains(this)) {
|
||||
for (VirtualFile file : getCachedChildren()) {
|
||||
if (file instanceof VirtualDirectoryImpl) {
|
||||
((VirtualDirectoryImpl)file).cleanupCachedChildren(survivors);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
myChildren = null;
|
||||
}
|
||||
}*/
|
||||
myChildren = null;
|
||||
}
|
||||
|
||||
public InputStream getInputStream() throws IOException {
|
||||
|
||||
@@ -75,6 +75,7 @@ import java.io.IOException;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -272,7 +273,7 @@ public abstract class PlatformTestCase extends UsefulTestCase implements DataPro
|
||||
try {
|
||||
LocalFileSystemImpl localFileSystem = (LocalFileSystemImpl)LocalFileSystem.getInstance();
|
||||
if (localFileSystem != null) {
|
||||
localFileSystem.cleanupForNextTest(eternallyLivingFiles());
|
||||
localFileSystem.cleanupForNextTest(Collections.<VirtualFile>emptySet());
|
||||
}
|
||||
}
|
||||
catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user