Spellchecker:(minor) replace with parametrized constructor

This commit is contained in:
Olga Strizhenko
2017-11-28 05:41:05 +03:00
parent 05e1fc674e
commit 08d25bf3d6
@@ -243,8 +243,7 @@ public class SpellCheckerSettingsPane implements Disposable {
return new ArrayList<>();
}
Set<String> words = this.dictionary.getEditableWords();
List<String> result = new ArrayList<>();
result.addAll(words);
List<String> result = new ArrayList<>(words);
Collections.sort(result);
return result;
}