Skip to content

Commit

Permalink
fixed formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudenw committed Jun 21, 2023
1 parent 4075a34 commit fbe69cf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static <T extends BloomFilter> T populateFromHashersFrom1AndFrom11(T filt
public static <T extends BloomFilter> T populateEntireFilter(T filter) {
return populateRange( filter, 0, filter.getShape().getNumberOfBits()-1);
}

/**
* Enables all bits in a range (inclusive).
* @param <T> the Bloom filter type.
Expand All @@ -78,7 +78,8 @@ public static <T extends BloomFilter> T populateEntireFilter(T filter) {
* @return {@code filter} for chaining
*/
public static <T extends BloomFilter> T populateRange(T filter, int start, int end) {
filter.merge( (IndexProducer) p -> {for (int i=start;i<=end;i++) {
filter.merge( (IndexProducer) p -> {
for (int i=start; i<=end; i++) {
if (!p.test(i)) {
return false;
}
Expand Down

0 comments on commit fbe69cf

Please sign in to comment.