提交 e9bc1c2f authored 作者: Thomas Mueller's avatar Thomas Mueller

Reformatted

上级 deed1585
...@@ -153,13 +153,13 @@ public class TestBitField extends TestBase { ...@@ -153,13 +153,13 @@ public class TestBitField extends TestBase {
BitField bits = new BitField(); BitField bits = new BitField();
BitSet set = new BitSet(); BitSet set = new BitSet();
Random random = new Random(1); Random random = new Random(1);
int maxoff = 500; int maxOffset = 500;
int maxlen = 500; int maxLen = 500;
int total = maxoff + maxlen; int total = maxOffset + maxLen;
int count = 10000; int count = 10000;
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
int offset = random.nextInt(maxoff); int offset = random.nextInt(maxOffset);
int len = random.nextInt(maxlen); int len = random.nextInt(maxLen);
boolean val = random.nextBoolean(); boolean val = random.nextBoolean();
set.set(offset, offset + len, val); set.set(offset, offset + len, val);
bits.setRange(offset, len, val); bits.setRange(offset, len, val);
...@@ -168,4 +168,5 @@ public class TestBitField extends TestBase { ...@@ -168,4 +168,5 @@ public class TestBitField extends TestBase {
} }
} }
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论