From f00a7073644e7706ef1d8d551a7be215b81fa827 Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Thu, 14 Nov 2024 13:10:45 +0000 Subject: [PATCH] lucene-monitor: make static DocumentBatch.of package scope --- .../src/java/org/apache/lucene/monitor/DocumentBatch.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lucene/monitor/src/java/org/apache/lucene/monitor/DocumentBatch.java b/lucene/monitor/src/java/org/apache/lucene/monitor/DocumentBatch.java index 2bf0dc886b3..4729ad614db 100644 --- a/lucene/monitor/src/java/org/apache/lucene/monitor/DocumentBatch.java +++ b/lucene/monitor/src/java/org/apache/lucene/monitor/DocumentBatch.java @@ -41,7 +41,7 @@ abstract class DocumentBatch implements Closeable, Supplier { * @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); } @@ -52,7 +52,7 @@ abstract class DocumentBatch implements Closeable, Supplier { * 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) {