From 35ae3470aeffc32af5cbd625b0d445506d0c0b25 Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 6 Sep 2016 12:47:42 +0200 Subject: [PATCH] correct refreshAndFindFileByUrl javadoc (IDEA-CR-13533) --- .../src/com/intellij/openapi/vfs/VirtualFileManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/core-api/src/com/intellij/openapi/vfs/VirtualFileManager.java b/platform/core-api/src/com/intellij/openapi/vfs/VirtualFileManager.java index a6b16ffcb65d..4e96102a7915 100644 --- a/platform/core-api/src/com/intellij/openapi/vfs/VirtualFileManager.java +++ b/platform/core-api/src/com/intellij/openapi/vfs/VirtualFileManager.java @@ -100,8 +100,7 @@ public abstract class VirtualFileManager implements ModificationTracker { * This method is useful when the file was created externally and you need to find {@link VirtualFile} * corresponding to it.

*

- * This method should be only called within write-action. - * See {@link com.intellij.openapi.application.Application#runWriteAction}. + * If this method is invoked not from Swing event dispatch thread, then it must not happen inside a read action. * * @param url the URL * @return {@link VirtualFile} if the file was found, null otherwise