gresrun / jesque

An implementation of Resque in Java.
http://gresrun.github.io/jesque
Apache License 2.0
630 stars 131 forks source link

ConfigBuilder's withPort method exception message error #116

Closed ijaychang closed 7 years ago

ijaychang commented 7 years ago
/**
 * Configs created by this ConfigBuilder will have the given Redis port
 * number.
 *
 * @param port the Redis port number
 * @return this ConfigBuilder
 */
public ConfigBuilder withPort(final int port) {
    if (port < 1 || port > 65535) {
        throw new IllegalArgumentException("post must be a valid port in the range 1-65535: " + port);
    }
    this.port = port;
    return this;
}

It shoud be "throw new IllegalArgumentException("port must be a valid port in the range 1-65535: " + port);"