diff --git a/plugins/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettings.java b/plugins/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettings.java index 783fa17406df..6d7652559b0f 100644 --- a/plugins/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettings.java +++ b/plugins/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettings.java @@ -81,9 +81,9 @@ public class SpellCheckerSettings implements PersistentStateComponent { @SuppressWarnings({"ConstantConditions"}) public Element getState() { - if (myBundledDisabledDictionariesPaths.size() == 0 && - myDictionaryFoldersPaths.size() == 0 && - myDisabledDictionariesPaths.size() == 0) { + if (myBundledDisabledDictionariesPaths.isEmpty() && + myDictionaryFoldersPaths.isEmpty() && + myDisabledDictionariesPaths.isEmpty()) { return null; }