Thanks to visit codestin.com
Credit goes to github.com

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

Commit 8145311

Browse files
authored
fix: Preconditions only supports %s format (#1153)
1 parent 9645752 commit 8145311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gax-grpc/src/main/java/com/google/api/gax/grpc/InstantiatingGrpcChannelProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ public int getPoolSize() {
536536
public Builder setPoolSize(int poolSize) {
537537
Preconditions.checkArgument(poolSize > 0, "Pool size must be positive");
538538
Preconditions.checkArgument(
539-
poolSize <= MAX_POOL_SIZE, "Pool size must be less than %d", MAX_POOL_SIZE);
539+
poolSize <= MAX_POOL_SIZE, "Pool size must be less than %s", MAX_POOL_SIZE);
540540
this.poolSize = poolSize;
541541
return this;
542542
}

0 commit comments

Comments
 (0)