From 1930425ffa4d57c3132d5258a0ac48ce29f247f5 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Mon, 13 Nov 2023 10:23:19 +0100 Subject: [PATCH] Tidy. --- .../test/org/apache/lucene/index/TestIndexWriter.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java index f63a1ee6aef..f3b9cac0e0c 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java @@ -2372,10 +2372,13 @@ public class TestIndexWriter extends LuceneTestCase { public void testHasUncommittedChanges() throws IOException { Directory dir = newDirectory(); - IndexWriter writer = new IndexWriter(dir, - newIndexWriterConfig(new MockAnalyzer(random())) - // Use a serial merge scheduler to avoid race conditions when checking for hasPendingMerges() - .setMergeScheduler(new SerialMergeScheduler())); + IndexWriter writer = + new IndexWriter( + dir, + newIndexWriterConfig(new MockAnalyzer(random())) + // Use a serial merge scheduler to avoid race conditions when checking for + // hasPendingMerges() + .setMergeScheduler(new SerialMergeScheduler())); assertTrue( writer.hasUncommittedChanges()); // this will be true because a commit will create an empty // index