RI ended early.
  &#47;&#47; Paths that end at a &quot;..&quot; must be normalized to end in &quot;..&#47;&quot;.
  if (state &gt;= _nonSimpleEndStates) {
    indices[_notSimpleIndex] = end;
  }
  int schemeEnd = indices[_schemeEndIndex];
  if (schemeEnd &gt;= start) {
    &#47;&#47; Rescan the scheme part now that we know it&#39;s not a path.
    state = _scan(uri, start, schemeEnd, _schemeStart, indices);
    if (state == _schemeStart) {
      &#47;&#47; Empty scheme.
      indices[_notSimpleIndex] = sche