From 5528cdb00feae835cb5a39aefe9fd933d39a787b Mon Sep 17 00:00:00 2001 From: Maxim Mossienko Date: Wed, 19 Aug 2009 22:02:34 +0400 Subject: [PATCH] synchronized for accurate check --- .../intellij/openapi/editor/ex/util/LexerEditorHighlighter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform-impl/src/com/intellij/openapi/editor/ex/util/LexerEditorHighlighter.java b/platform-impl/src/com/intellij/openapi/editor/ex/util/LexerEditorHighlighter.java index 4ba63e7e3cbd..320190667480 100644 --- a/platform-impl/src/com/intellij/openapi/editor/ex/util/LexerEditorHighlighter.java +++ b/platform-impl/src/com/intellij/openapi/editor/ex/util/LexerEditorHighlighter.java @@ -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;