Skip to content

Apache Lucene open-source search software

Tidy.

Adrien Grand1930425ffa4d
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