From 9199d48e7ee58791d480ff0174833c90c06acbc3 Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Fri, 24 Jun 2022 18:00:28 +0100 Subject: [PATCH] Remove outdated comment in UnifiedHighlighter.get(Formatter|Scorer) javadoc. (#820) --- .../apache/lucene/search/uhighlight/UnifiedHighlighter.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/uhighlight/UnifiedHighlighter.java b/lucene/highlighter/src/java/org/apache/lucene/search/uhighlight/UnifiedHighlighter.java index 0b460b20ef1..3e872733ce2 100644 --- a/lucene/highlighter/src/java/org/apache/lucene/search/uhighlight/UnifiedHighlighter.java +++ b/lucene/highlighter/src/java/org/apache/lucene/search/uhighlight/UnifiedHighlighter.java @@ -585,17 +585,13 @@ public class UnifiedHighlighter { return breakIterator.get(); } - /** - * Returns the {@link PassageScorer} to use for ranking passages. This returns a new {@code - * PassageScorer} by default; subclasses can override to customize. - */ + /** Returns the {@link PassageScorer} to use for ranking passages. */ protected PassageScorer getScorer(String field) { return scorer; } /** * Returns the {@link PassageFormatter} to use for formatting passages into highlighted snippets. - * This returns a new {@code PassageFormatter} by default; subclasses can override to customize. */ protected PassageFormatter getFormatter(String field) { return formatter;