gresrun / jesque

An implementation of Resque in Java.

Home Page:http://gresrun.github.io/jesque

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ConfigBuilder's withPort method exception message error

jaychang9 opened this issue · comments

/**
 * 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);"