update PsiDocumentManager.commitDocument javadoc (IDEA-CR-29058)

This commit is contained in:
peter
2018-02-05 19:07:26 +01:00
parent af70662e8d
commit 8532268b70
@@ -104,9 +104,7 @@ public abstract class PsiDocumentManager {
* Before a modified document is committed, accessing its PSI may return elements
* corresponding to original (unmodified) state of the document.<p/>
*
* For documents corresponding to PSI with events enabled (see {@link FileViewProvider#isEventSystemEnabled()}, this should be called
* in UI thread in a write-safe context (see {@link com.intellij.openapi.application.TransactionGuard}). For non-physical files, this can be
* called in any thread. In the latter case, clients hold themselves all responsibility for synchronizing that PSI.
* Should be called in UI thread in a write-safe context (see {@link com.intellij.openapi.application.TransactionGuard}).
*
* @param document the document to commit.
*/