Skip to content

Commit ee16197

Browse files
authored
fix: use %s instead of %d format specifier in checkArgument (#163)
* fix: format specifier * fix: review changes
1 parent cbf8082 commit ee16197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ public Tuple<String, byte[]> read(
689689
Span span = startSpan(HttpStorageRpcSpans.SPAN_NAME_READ);
690690
Scope scope = tracer.withSpan(span);
691691
try {
692-
checkArgument(position >= 0, "Position should be non-negative, is %d", position);
692+
checkArgument(position >= 0, "Position should be non-negative, is " + position);
693693
Get req = createReadRequest(from, options);
694694
StringBuilder range = new StringBuilder();
695695
range.append("bytes=").append(position).append("-").append(position + bytes - 1);

0 commit comments

Comments
 (0)