mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
sentinel must be new unique instance
This commit is contained in:
+2
-2
@@ -24,7 +24,6 @@ import com.intellij.openapi.editor.ex.RangeHighlighterEx;
|
||||
import com.intellij.openapi.editor.markup.*;
|
||||
import com.intellij.openapi.util.Comparing;
|
||||
import com.intellij.openapi.util.Getter;
|
||||
import com.intellij.ui.Gray;
|
||||
import com.intellij.util.BitUtil;
|
||||
import com.intellij.util.Consumer;
|
||||
import org.intellij.lang.annotations.MagicConstant;
|
||||
@@ -38,7 +37,8 @@ import java.awt.*;
|
||||
* @author max
|
||||
*/
|
||||
class RangeHighlighterImpl extends RangeMarkerImpl implements RangeHighlighterEx, Getter<RangeHighlighterEx> {
|
||||
private static final Color NULL_COLOR = Gray._0;
|
||||
@SuppressWarnings({"InspectionUsingGrayColors", "UseJBColor"})
|
||||
private static final Color NULL_COLOR = new Color(0, 0, 0); // must be new instance to work as a sentinel
|
||||
|
||||
private final MarkupModel myModel;
|
||||
private TextAttributes myTextAttributes;
|
||||
|
||||
Reference in New Issue
Block a user