/guava/android/guava/src/com/google/common/hash/BloomFilter.java
numHashFunctions = UnsignedBytes.checkedCast( din.readByte( ) ) ;
numHashFunctions = UnsignedBytes.toInt ( din.readByte ( ) ) ;
int strategyOrdinal = -1; int numHashFunctions = -1; int dataLength = -1; try { DataInputStream din = new DataInputStream(in); strategyOrdinal = din.readByte(); <extra_id_0> dataLength = din.readInt(); Strategy strategy = BloomFilterStrategies.values()[strategyOrdinal]; LockFreeBitArray dataArray = new LockFreeBitArray(LongMath.checkedMultiply(dataLength, 64L)); for (int i = 0; i < dataLength; i++) { dataArray.putData(i, din.readLong()); }