You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2026/06/18 16:01:51 UTC
(commons-lang) 01/03: Sort members
This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit 61e87aa1e5a74d4b39140d656967b0bd4b126b93
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Jun 18 15:59:37 2026 +0000
Sort members
---
.../org/apache/commons/lang3/BitFieldTest.java | 28 +++++++++++-----------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/src/test/java/org/apache/commons/lang3/BitFieldTest.java b/src/test/java/org/apache/commons/lang3/BitFieldTest.java
index cc53735c6..1208cf579 100644
--- a/src/test/java/org/apache/commons/lang3/BitFieldTest.java
+++ b/src/test/java/org/apache/commons/lang3/BitFieldTest.java
@@ -138,20 +138,6 @@ void testGetValue() {
assertEquals(BF_ZERO.getValue(0), 0);
}
- /**
- * Tests the {@link BitField#isAllSet()} method.
- */
- @Test
- void testIsAllSet() {
- for (int j = 0; j < 0x3F80; j += 0x80) {
- assertFalse(BF_MULTI.isAllSet(j));
- assertTrue(BF_ZERO.isAllSet(j));
- }
- assertTrue(BF_MULTI.isAllSet(0x3F80));
- assertFalse(BF_SINGLE.isAllSet(0));
- assertTrue(BF_SINGLE.isAllSet(0x4000));
- }
-
/**
* Tests that an int mask with the high bit set is treated as 32 unsigned bits on the long methods, instead of being sign-extended into bits 32-63.
*/
@@ -171,6 +157,20 @@ void testIntMaskHighBitOnLongHolder() {
assertEquals(topByte.clear(-1L), 0xFFFFFFFF00FFFFFFL);
}
+ /**
+ * Tests the {@link BitField#isAllSet()} method.
+ */
+ @Test
+ void testIsAllSet() {
+ for (int j = 0; j < 0x3F80; j += 0x80) {
+ assertFalse(BF_MULTI.isAllSet(j));
+ assertTrue(BF_ZERO.isAllSet(j));
+ }
+ assertTrue(BF_MULTI.isAllSet(0x3F80));
+ assertFalse(BF_SINGLE.isAllSet(0));
+ assertTrue(BF_SINGLE.isAllSet(0x4000));
+ }
+
/**
* test the isSet() method.
*/