/** * Replace any path requirements with the supplied path. * * @param path to use as a requirement * @return {@code this}. */ @NonNull public GitURIRequirementsBuilder withPath(@CheckForNull String path) { withoutPath(); if (path != null) { requirements.add(new PathRequirement(path)); } return this; }
return withoutScheme().withoutPath().withoutHostname().withoutHostnamePort();