From d34ffeb1d4da3219ca6a5ad731bbf5173cfdd457 Mon Sep 17 00:00:00 2001 From: Shibi Balamurugan Date: Thu, 7 Nov 2024 15:59:21 -0500 Subject: [PATCH] Style --- .../src/java/org/apache/lucene/search/SearcherManager.java | 4 ++-- .../test/org/apache/lucene/search/TestSearcherManager.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java b/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java index 1ec9d70a46b..e198ec7086d 100644 --- a/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java +++ b/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java @@ -114,8 +114,8 @@ public final class SearcherManager extends ReferenceManager { } /** - * Creates and returns a new SearcherManager from an existing {@link IndexReader}. Note that - * this steals the incoming reference. + * Creates and returns a new SearcherManager from an existing {@link IndexReader}. Note that this + * steals the incoming reference. * * @param reader the IndexReader. * @param searcherFactory An optional {@link SearcherFactory}. Pass null if you don't diff --git a/lucene/core/src/test/org/apache/lucene/search/TestSearcherManager.java b/lucene/core/src/test/org/apache/lucene/search/TestSearcherManager.java index 84cd2635673..b9f3f56d389 100644 --- a/lucene/core/src/test/org/apache/lucene/search/TestSearcherManager.java +++ b/lucene/core/src/test/org/apache/lucene/search/TestSearcherManager.java @@ -561,13 +561,13 @@ public class TestSearcherManager extends ThreadedIndexingAndSearchingTestCase { MultiReader reader = new MultiReader(nrtReader, nrtReader2); SearcherManager mgr = new SearcherManager(reader, null); - for(int i=0;i<10;i++) { + for (int i = 0; i < 10; i++) { Document d = new Document(); d.add(new TextField("contents", Integer.toString(i), Field.Store.NO)); w.addDocument(new Document()); Document d2 = new Document(); - d2.add(new TextField("contents", Integer.toString(i+10), Field.Store.NO)); + d2.add(new TextField("contents", Integer.toString(i + 10), Field.Store.NO)); w2.addDocument(new Document()); }