mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
avoid deadlock, allowing EDT to read non-final data (IDEA-170405)
This commit is contained in:
@@ -202,10 +202,10 @@ public class SrcFileAnnotator implements Disposable {
|
||||
@Nullable
|
||||
private SoftReference<TIntIntHashMap> doGetLineMapping(final long date, boolean oldToNew, MyEditorBean editorBean) {
|
||||
VirtualFile virtualFile = editorBean.getVFile();
|
||||
if (myOldContent == null && ApplicationManager.getApplication().isDispatchThread()) return null;
|
||||
final byte[] oldContent;
|
||||
synchronized (LOCK) {
|
||||
if (myOldContent == null) {
|
||||
if (ApplicationManager.getApplication().isDispatchThread()) return null;
|
||||
final LocalHistory localHistory = LocalHistory.getInstance();
|
||||
byte[] byteContent = localHistory.getByteContent(virtualFile, new FileRevisionTimestampComparator() {
|
||||
public boolean isSuitable(long revisionTimestamp) {
|
||||
|
||||
Reference in New Issue
Block a user