mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[analyzer] Clear jar handler cache
GitOrigin-RevId: cf2a0f7c31980a7dfd8819cdf34065adf8ef1a06
This commit is contained in:
committed by
intellij-monorepo-bot
parent
54ce7a2692
commit
09d271695e
@@ -7,6 +7,7 @@ import com.intellij.openapi.vfs.StandardFileSystems;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.util.containers.ConcurrentFactoryMap;
|
||||
import com.intellij.util.io.URLUtil;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Map;
|
||||
@@ -47,4 +48,12 @@ public final class CoreJarFileSystem extends DeprecatedVirtualFileSystem {
|
||||
myHandlers.forEach((path, handler) -> handler.clearCaches());
|
||||
myHandlers.clear();
|
||||
}
|
||||
|
||||
@ApiStatus.Internal
|
||||
public void clearHandler(@NotNull String jarPath) {
|
||||
CoreJarHandler handler = myHandlers.remove(jarPath);
|
||||
if (handler != null) {
|
||||
handler.clearCaches();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user