Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lucene-monitor: make static DocumentBatch.of package scope #13995

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ abstract class DocumentBatch implements Closeable, Supplier<LeafReader> {
* @param doc the document to add
* @return the batch containing the input document
*/
public static DocumentBatch of(Analyzer analyzer, Document doc) {
static DocumentBatch of(Analyzer analyzer, Document doc) {
return new SingletonDocumentBatch(analyzer, doc);
}

Expand All @@ -52,7 +52,7 @@ public static DocumentBatch of(Analyzer analyzer, Document doc) {
* collection.
* @return the batch containing the input documents
*/
public static DocumentBatch of(Analyzer analyzer, Document... docs) {
static DocumentBatch of(Analyzer analyzer, Document... docs) {
if (docs.length == 0) {
throw new IllegalArgumentException("A DocumentBatch must contain at least one document");
} else if (docs.length == 1) {
Expand Down