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 01:36:10 UTC
[lucene] branch branch_9x updated: LUCENE-10564: Fix errorprone warning
This is an automated email from the ASF dual-hosted git repository.
julietibs 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 6e3b7bc5224 LUCENE-10564: Fix errorprone warning
6e3b7bc5224 is described below
commit 6e3b7bc52240d9601240a4e99c6f9b6fe12b2f33
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);
}
}