Skip to content

Commit 1930425

Browse files
committed
Tidy.
1 parent c081cfa commit 1930425

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2372,10 +2372,13 @@ public void testCorruptFirstCommit() throws Exception {
23722372

23732373
public void testHasUncommittedChanges() throws IOException {
23742374
Directory dir = newDirectory();
2375-
IndexWriter writer = new IndexWriter(dir,
2376-
newIndexWriterConfig(new MockAnalyzer(random()))
2377-
// Use a serial merge scheduler to avoid race conditions when checking for hasPendingMerges()
2378-
.setMergeScheduler(new SerialMergeScheduler()));
2375+
IndexWriter writer =
2376+
new IndexWriter(
2377+
dir,
2378+
newIndexWriterConfig(new MockAnalyzer(random()))
2379+
// Use a serial merge scheduler to avoid race conditions when checking for
2380+
// hasPendingMerges()
2381+
.setMergeScheduler(new SerialMergeScheduler()));
23792382
assertTrue(
23802383
writer.hasUncommittedChanges()); // this will be true because a commit will create an empty
23812384
// index

0 commit comments

Comments
 (0)