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:06:06 UTC
[lucene] branch main 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 main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new 0aa526d LUCENE-10076: fix the assertion in luke module to only check if the optional has a value
0aa526d is described below
commit 0aa526d2569bf7680600cd0e8ae402a50b4baf29
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