Skip to content

Commit

Permalink
Merge pull request apache#24133: Fix checkArgument format string in B…
Browse files Browse the repository at this point in the history
…yteKeyRange
  • Loading branch information
kennknowles authored Nov 18, 2022
2 parents 1dd2ccd + eb552cd commit c22446a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ boolean endsAfterKey(ByteKey key) {
private static BigInteger paddedPositiveInt(byte[] bytes, int length) {
int bytePaddingNeeded = length - bytes.length;
checkArgument(
bytePaddingNeeded >= 0, "Required bytes.length {} < length {}", bytes.length, length);
bytePaddingNeeded >= 0, "Required bytes.length %s < length %s", bytes.length, length);
BigInteger ret = new BigInteger(1, bytes);
return (bytePaddingNeeded == 0) ? ret : ret.shiftLeft(8 * bytePaddingNeeded);
}
Expand Down

0 comments on commit c22446a

Please sign in to comment.