Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
fix: Preconditions only supports %s format (#1153)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahdietz committed Jul 21, 2020
1 parent 9645752 commit 8145311
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -536,7 +536,7 @@ public int getPoolSize() {
public Builder setPoolSize(int poolSize) {
Preconditions.checkArgument(poolSize > 0, "Pool size must be positive");
Preconditions.checkArgument(
poolSize <= MAX_POOL_SIZE, "Pool size must be less than %d", MAX_POOL_SIZE);
poolSize <= MAX_POOL_SIZE, "Pool size must be less than %s", MAX_POOL_SIZE);
this.poolSize = poolSize;
return this;
}
Expand Down

0 comments on commit 8145311

Please sign in to comment.