mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diff: do not access Document.getCharsSequence() without readlock
This commit is contained in:
@@ -211,7 +211,7 @@ public class SimpleDiffViewer extends TwosideTextDiffViewer {
|
||||
}
|
||||
|
||||
boolean isEqualContents = (lineFragments == null || lineFragments.isEmpty()) &&
|
||||
StringUtil.equals(document1.getCharsSequence(), document2.getCharsSequence());
|
||||
StringUtil.equals(texts[0], texts[1]);
|
||||
|
||||
return apply(new CompareData(lineFragments, isEqualContents));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user