Skip to content

Commit 9c1b1e6

Browse files
juangjddavison
authored andcommitted
Fix format string.
Preconditions.checkArgument only accepts "%s", and not "%d" or any of the other placeholders. Signed-off-by: Daniel Davison <daniel.jj.davison@gmail.com>
1 parent 3c44bef commit 9c1b1e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/client/src/org/openqa/selenium/remote/service/DriverService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public B usingDriverExecutable(File file) {
232232
* @return A self reference.
233233
*/
234234
public B usingPort(int port) {
235-
checkArgument(port >= 0, "Invalid port number: %d", port);
235+
checkArgument(port >= 0, "Invalid port number: %s", port);
236236
this.port = port;
237237
return (B) this;
238238
}

0 commit comments

Comments
 (0)