mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -55,7 +55,7 @@ public class BitMapBloomFilter implements BloomFilter{
|
||||
*/
|
||||
@Override
|
||||
public boolean add(String str) {
|
||||
boolean flag = true;
|
||||
boolean flag = false;
|
||||
for (BloomFilter filter : filters) {
|
||||
flag |= filter.add(str);
|
||||
}
|
||||
|
@@ -11,7 +11,7 @@ import java.io.Serializable;
|
||||
public class IntMap implements BitMap, Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private int[] ints;
|
||||
private final int[] ints;
|
||||
|
||||
/**
|
||||
* 构造
|
||||
|
@@ -11,7 +11,7 @@ import java.io.Serializable;
|
||||
public class LongMap implements BitMap, Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private long[] longs;
|
||||
private final long[] longs;
|
||||
|
||||
/**
|
||||
* 构造
|
||||
|
Reference in New Issue
Block a user