[analyzer] Clear jar handler cache

GitOrigin-RevId: cf2a0f7c31980a7dfd8819cdf34065adf8ef1a06
This commit is contained in:
Pavel Mikhailovskii
2025-07-11 09:40:16 +00:00
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();
}
}
}