schemeEnd + 3) {
      &#47;&#47; Always be non-simple if URI contains user-info.
      &#47;&#47; The scanner doesn&#39;t set the not-simple position in this case because
      &#47;&#47; it&#39;s setting the host-start position instead.
      isSimple = false;
    } else if (portStart &gt; start &amp;&amp; portStart + 1 == pathStart) {
      &#47;&#47; If the port is empty, it should be omitted.
      &#47;&#47; Pathological case, don&#39;t bother correcting it.
      isSimple = false;
    } else if (quer