Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
coding style
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
  • Loading branch information
miurahr committed Sep 28, 2021
1 parent 135e598 commit 6b90e58
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -29,7 +29,7 @@ public class DictionariesManager {

protected final List<IDictionaryFactory> factories = new ArrayList<>();
protected final List<IDictionary> dictionaries = new ArrayList<>();
private Stemmer stemmer;
private final Stemmer stemmer;

public DictionariesManager() {
factories.add(new EPWING());
Expand Down Expand Up @@ -95,7 +95,9 @@ public List<DictionaryEntry> findWord(final String word) {
if (result.size() == 0) {
String[] stemmed = stemmer.doStem(word);
if (stemmed.length > 1) {
result = dictionaries.stream().flatMap(dict -> doPredictiveLookup(dict, stemmed[0]).stream()).collect(Collectors.toList());
result = dictionaries.stream()
.flatMap(dict -> doPredictiveLookup(dict, stemmed[0]).stream())
.collect(Collectors.toList());
}
}
return result;
Expand Down

0 comments on commit 6b90e58

Please sign in to comment.