You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by to...@apache.org on 2022/01/25 13:09:19 UTC

[lucene] branch branch_9x updated: LUCENE-10076: fix the assertion in luke module to only check if the optional has a value

This is an automated email from the ASF dual-hosted git repository.

tomoko pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 7bc3a39  LUCENE-10076: fix the assertion in luke module to only check if the optional has a value
7bc3a39 is described below

commit 7bc3a3966b31d59ac4a3f463f3f339509970272a
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Tue Jan 25 22:05:27 2022 +0900

    LUCENE-10076: fix the assertion in luke module to only check if the optional has a value
---
 .../test/org/apache/lucene/luke/models/overview/TestOverviewImpl.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/luke/src/test/org/apache/lucene/luke/models/overview/TestOverviewImpl.java b/lucene/luke/src/test/org/apache/lucene/luke/models/overview/TestOverviewImpl.java
index 14810de..0470735 100644
--- a/lucene/luke/src/test/org/apache/lucene/luke/models/overview/TestOverviewImpl.java
+++ b/lucene/luke/src/test/org/apache/lucene/luke/models/overview/TestOverviewImpl.java
@@ -72,7 +72,7 @@ public class TestOverviewImpl extends OverviewTestBase {
   @Test
   public void testIsOptimized() {
     OverviewImpl overview = new OverviewImpl(reader, indexDir.toString());
-    assertTrue(overview.isOptimized().orElse(false));
+    assertTrue(overview.isOptimized().isPresent());
   }
 
   @Test