mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
synchronized for accurate check
This commit is contained in:
@@ -53,7 +53,7 @@ public class LexerEditorHighlighter implements EditorHighlighter, PrioritizedDoc
|
||||
return myEditor != null ? myEditor.getDocument() : null;
|
||||
}
|
||||
|
||||
public final boolean checkContentIsEqualTo(CharSequence sequence) {
|
||||
public synchronized final boolean checkContentIsEqualTo(CharSequence sequence) {
|
||||
final Document document = getDocument();
|
||||
if (document != null) return document.getText().equals(sequence.toString());
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user