From f377afa724e43b85ba4a67709ed2702d0490888d Mon Sep 17 00:00:00 2001 From: Oleg Shpynov Date: Mon, 2 Nov 2009 19:23:48 +0300 Subject: [PATCH] Do not save state if it is empty for rubymine extensions && cleanup --- .../com/intellij/spellchecker/settings/SpellCheckerSettings.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettings.java b/plugins/spellchecker/src/com/intellij/spellchecker/settings/SpellCheckerSettings.java index 783fa17406..6d7652559b 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; } -- 2.11.4.GIT