fix typo in Params::readInteger()

This commit is contained in:
Stefan Otto 2023-06-30 17:12:21 +02:00 committed by GitHub
parent 3c8e26f078
commit 49bc184877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -427,11 +427,11 @@ public class Params {
return cliContext;
}
private static int readInteger(String n, String v) {
if (!Utilities.isInteger(v)) {
throw new Error("Unable to read "+v+" provided for '"+n+"' - must be an integer");
private static int readInteger(String name, String value) {
if (!Utilities.isInteger(value)) {
throw new Error("Unable to read "+value+" provided for '"+name+"' - must be an integer");
}
return Integer.parseInt(n);
return Integer.parseInt(value);
}
private static ValidatorWatchMode readWatchMode(String s) {
@ -485,4 +485,4 @@ public class Params {
}
}
}
}
}