return vfs cleanup

This commit is contained in:
peter
2010-07-04 23:17:53 +01:00
parent ef43dc9a5a
commit 30f928c0b9
2 changed files with 5 additions and 4 deletions
@@ -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) {