On Fri, 2 Jul 2021 13:57:47 GMT, Daniel Fuchs <dfu...@openjdk.org> wrote:
>> Сергей Цыпанов has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains three additional >> commits since the last revision: >> >> - Merge branch 'master' into 8267840 >> - Merge branch 'master' into 8267840 >> - 8267840: Improve URLStreamHandler.parseURL() > > src/java.base/share/classes/java/net/URLStreamHandler.java line 275: > >> 273: path = "/"; >> 274: } else { >> 275: path = path.substring(0, ind).concat("/"); > > would that be equivalent to > > path = path.substring(0, ind + 1); > > given that ind = path.lastIndexOf('/') ? Right, fixed! ------------- PR: https://git.openjdk.java.net/jdk/pull/4526