You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ju...@apache.org on 2022/05/13 00:34:43 UTC

[lucene] branch main updated: LUCENE-10564: Fix errorprone warning

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

julietibs 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 2cca0e84419 LUCENE-10564: Fix errorprone warning
2cca0e84419 is described below

commit 2cca0e844197a6c27b8ace0f825cb47929318d4b
Author: Julie Tibshirani <ju...@apache.org>
AuthorDate: Thu May 12 17:31:05 2022 -0700

    LUCENE-10564: Fix errorprone warning
    
    This slipped through in the original commit because we only enable errorprone on
    nightly runs.
---
 lucene/core/src/test/org/apache/lucene/util/TestSparseFixedBitSet.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/core/src/test/org/apache/lucene/util/TestSparseFixedBitSet.java b/lucene/core/src/test/org/apache/lucene/util/TestSparseFixedBitSet.java
index c17e0c9e3d9..4cb1b92a0a8 100644
--- a/lucene/core/src/test/org/apache/lucene/util/TestSparseFixedBitSet.java
+++ b/lucene/core/src/test/org/apache/lucene/util/TestSparseFixedBitSet.java
@@ -103,6 +103,6 @@ public class TestSparseFixedBitSet extends BaseBitSetTestCase<SparseFixedBitSet>
 
     BitSet orCopy = new SparseFixedBitSet(size);
     orCopy.or(new BitSetIterator(original, size));
-    assertEquals(orCopy.ramBytesUsed(), original.ramBytesUsed(), 64L);
+    assertTrue(Math.abs(original.ramBytesUsed() - orCopy.ramBytesUsed()) <= 64L);
   }
 }