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

Commit

Permalink
Bump dsl4j@0.4.4
Browse files Browse the repository at this point in the history
- now lookup throws IOException

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
  • Loading branch information
miurahr committed Feb 3, 2022
1 parent 1a303da commit d8b7833
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Expand Up @@ -94,7 +94,7 @@ dependencies {
implementation("com.github.takawitter:trie4j:0.9.8")

// for lingvodsl
implementation("io.github.eb4j:dsl4j:0.3.0")
implementation("io.github.eb4j:dsl4j:0.4.4")

// for mdict
implementation("io.github.eb4j:mdict4j:0.2.3")
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/io/github/eb4j/ebview/dictionary/LingvoDSL.java
Expand Up @@ -25,6 +25,7 @@
import io.github.eb4j.ebview.data.IDictionary;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
Expand Down Expand Up @@ -78,7 +79,7 @@ public String getDictionaryName() {
* @return list of results.
*/
@Override
public List<DictionaryEntry> readArticles(final String word) {
public List<DictionaryEntry> readArticles(final String word) throws IOException {
return readEntries(dictionary.lookup(word));
}

Expand All @@ -90,7 +91,7 @@ public List<DictionaryEntry> readArticles(final String word) {
* @return list of results.
*/
@Override
public List<DictionaryEntry> readArticlesPredictive(final String word) {
public List<DictionaryEntry> readArticlesPredictive(final String word) throws IOException {
return readEntries(dictionary.lookupPredictive(word));
}

Expand Down

0 comments on commit d8b7833

Please sign in to comment.