Do not save state if it is empty for rubymine extensions && cleanup

This commit is contained in:
Oleg Shpynov
2009-11-02 19:23:48 +03:00
parent 6ff2ff0f94
commit f377afa724
@@ -81,9 +81,9 @@ public class SpellCheckerSettings implements PersistentStateComponent<Element> {
@SuppressWarnings({"ConstantConditions"})
public Element getState() {
if (myBundledDisabledDictionariesPaths.size() == 0 &&
myDictionaryFoldersPaths.size() == 0 &&
myDisabledDictionariesPaths.size() == 0) {
if (myBundledDisabledDictionariesPaths.isEmpty() &&
myDictionaryFoldersPaths.isEmpty() &&
myDisabledDictionariesPaths.isEmpty()) {
return null;
}