Apache Lucene open-source search software
LUCENE-4906: make expert Object method protected
Michael McCandlessc3fd78cae6fb
diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/postingshighlight/PostingsHighlighter.java b/lucene/highlighter/src/java/org/apache/lucene/search/postingshighlight/PostingsHighlighter.javaindex f3140bd3d35..fa69380b6bf 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/postingshighlight/PostingsHighlighter.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/postingshighlight/PostingsHighlighter.java@@ -327,7 +327,7 @@ public class PostingsHighlighter {* @throws IllegalArgumentException if <code>field</code> was indexed without* {@link IndexOptions#DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS}*/- public Map<String,Object[]> highlightFieldsAsObjects(String fieldsIn[], Query query, IndexSearcher searcher, int[] docidsIn, int maxPassagesIn[]) throws IOException {+ protected Map<String,Object[]> highlightFieldsAsObjects(String fieldsIn[], Query query, IndexSearcher searcher, int[] docidsIn, int maxPassagesIn[]) throws IOException {if (fieldsIn.length < 1) {throw new IllegalArgumentException("fieldsIn must not be empty");}