IDEA-CR-14800 use == to compare attributes

This commit is contained in:
Vladimir Krivosheev
2016-10-24 16:03:22 +02:00
parent 7812479b2c
commit 466c47f462
@@ -39,7 +39,7 @@ public class EditorColorsSchemeImpl extends AbstractColorsScheme implements Exte
}
public void setAttributes(@NotNull TextAttributesKey key, @NotNull TextAttributes attributes, boolean force) {
if (force || attributes == USE_INHERITED_MARKER || !attributes.equals(getAttributes(key))) {
if (force || attributes == USE_INHERITED_MARKER || attributes != getAttributes(key)) {
myAttributesMap.put(key, attributes);
}
}