container-common/src/main/java/com/streamsets/datacollector/http/WebServerTask.java
private void checkValidPorts() {
    if ((conf.get(HTTP_PORT_KEY, HTTP_PORT_DEFAULT) == 0 && conf.get(HTTPS_PORT_KEY,
      HTTPS_PORT_DEFAULT) != -1)
        || (conf.get(HTTPS_PORT_KEY, HTTPS_PORT_DEFAULT) == 0 && conf.get(HTTP_PORT_KEY,
          HTTP_PORT_DEFAULT) != -1)) {
      throw new IllegalArgumentException(
          "Invalid port combination for http and https, If http port is set to 0 (random), then https should be "
              + "set to -1 or vice versa");
    }
  }
private void checkValidPorts() {
    if ((conf.get(HTTP_PORT_KEY, HTTP_PORT_DEFAULT) == 0 && conf.get(HTTPS_PORT_KEY,
      HTTPS_PORT_DEFAULT) != -1)
        || (conf.get(HTTPS_PORT_KEY, HTTPS_PORT_DEFAULT) == 0 && conf.get(HTTP_PORT_KEY,
          HTTP_PORT_DEFAULT) != -1)) {
      throw new IllegalArgumentException(
          "Invalid port combination for http and https, If http port is set to 0 (random), then https should be "
              + "set to -1 or vice versa");
    }
  }
private void checkValidPorts ( ) { if ( ( conf . get ( HTTP_PORT_KEY , HTTP_PORT_DEFAULT ) == 0 && conf . get ( HTTPS_PORT_KEY , HTTPS_PORT_DEFAULT ) != - 1 ) || ( conf . get ( HTTPS_PORT_KEY , HTTPS_PORT_DEFAULT ) == 0 && conf . get ( HTTP_PORT_KEY , HTTP_PORT_DEFAULT ) != - 1 ) ) { throw new IllegalArgumentException ( "Invalid port combination for http and https, If http port is set to 0 (random), then https should be " + "set to -1 or vice versa" ) ; } }
port.
port .