Skip to content

Commit

Permalink
Fix format string.
Browse files Browse the repository at this point in the history
Preconditions.checkArgument only accepts "%s", and not "%d" or any of the other placeholders.

Signed-off-by: Daniel Davison <[email protected]>
  • Loading branch information
juangj authored and ddavison committed Oct 19, 2015
1 parent 3c44bef commit 9c1b1e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public B usingDriverExecutable(File file) {
* @return A self reference.
*/
public B usingPort(int port) {
checkArgument(port >= 0, "Invalid port number: %d", port);
checkArgument(port >= 0, "Invalid port number: %s", port);
this.port = port;
return (B) this;
}
Expand Down

0 comments on commit 9c1b1e6

Please sign in to comment.