Skip to content

Apache Lucene open-source search software

[hunspell] make SuggestionTimeoutException public

Peter Gromov9ed526b70ef8
diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/SuggestionTimeoutException.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/SuggestionTimeoutException.java
index 6a831ade052..3e903c0741c 100644
--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/SuggestionTimeoutException.java
+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/SuggestionTimeoutException.java
@@ -26,14 +26,14 @@ import java.util.List;
public class SuggestionTimeoutException extends RuntimeException {
private final List<String> partialResult;
- SuggestionTimeoutException(String message, List<String> partialResult) {
+ public SuggestionTimeoutException(String message, List<String> partialResult) {
super(message);
this.partialResult = partialResult == null ? null : Collections.unmodifiableList(partialResult);
}
/**
* @return partial result calculated by {@link Hunspell#suggest} before the time limit was
- * exceeded
+ * exceeded, or {@code null} if there's none available
*/
public List<String> getPartialResult() {
return partialResult;