Skip to content

Commit 1e4ea4c

Browse files
committed
Use toIntExact
1 parent 605c93d commit 1e4ea4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/index/codec/bloomfilter/ES93BloomFilterStoredFieldsFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public ES93BloomFilterStoredFieldsFormat(
114114
+ " or less (rounded to nearest power of two)"
115115
);
116116
}
117-
this.bloomFilterSizeInBits = (int) Math.multiplyExact(closestPowerOfTwoBloomFilterSizeInBytes, Byte.SIZE);
117+
this.bloomFilterSizeInBits = Math.toIntExact(Math.multiplyExact(closestPowerOfTwoBloomFilterSizeInBytes, Byte.SIZE));
118118
}
119119

120120
@Override

0 commit comments

Comments
 (0)