Skip to content

Commit

Permalink
fix: use %s instead of %d format specifier in checkArgument (#163)
Browse files Browse the repository at this point in the history
* fix: format specifier

* fix: review changes
  • Loading branch information
athakor committed Mar 9, 2020
1 parent cbf8082 commit ee16197
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -689,7 +689,7 @@ public Tuple<String, byte[]> read(
Span span = startSpan(HttpStorageRpcSpans.SPAN_NAME_READ);
Scope scope = tracer.withSpan(span);
try {
checkArgument(position >= 0, "Position should be non-negative, is %d", position);
checkArgument(position >= 0, "Position should be non-negative, is " + position);
Get req = createReadRequest(from, options);
StringBuilder range = new StringBuilder();
range.append("bytes=").append(position).append("-").append(position + bytes - 1);
Expand Down

0 comments on commit ee16197

Please sign in to comment.