Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
panxiaojun233 committed Dec 29, 2020
1 parent 8bb3516 commit ed88219
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dubbo-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<dependency>
<groupId>org.roaringbitmap</groupId>
<artifactId>RoaringBitmap</artifactId>
<version>0.8.12</version>
<version>0.9.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ public class BitList<E> implements List<E>{
private final List<E> unmodifiableList;

// FIXME 看一下高版本的RoaringBitMap,是否有内置函数支持更高效的遍历
BitList(List<E> unmodifiableList, boolean empty) {
public BitList(List<E> unmodifiableList, boolean empty) {
this.unmodifiableList = unmodifiableList;
this.rootMap = new RoaringBitmap();
if (!empty) {
this.rootMap.add(0L, unmodifiableList.size());
}
}

private BitList(List<E> unmodifiableList, RoaringBitmap rootMap) {
public BitList(List<E> unmodifiableList, RoaringBitmap rootMap) {
this.unmodifiableList = unmodifiableList;
this.rootMap = rootMap;
}
Expand Down

0 comments on commit ed88219

Please sign in to comment.