Fix ROOT_PATH constant to match recent changes
"/" should be 0 segments, isAbsolute=true, hasTrailingSlash=false
This commit is contained in:
@@ -43,7 +43,7 @@ class DefaultPathSegmentContainer implements PathSegmentContainer {
|
||||
new DefaultPathSegmentContainer("", Collections.emptyList());
|
||||
|
||||
private static final PathSegmentContainer ROOT_PATH =
|
||||
new DefaultPathSegmentContainer("/", Collections.singletonList(EMPTY_PATH_SEGMENT));
|
||||
new DefaultPathSegmentContainer("/", Collections.emptyList());
|
||||
|
||||
|
||||
private final String path;
|
||||
|
||||
@@ -92,7 +92,7 @@ public class DefaultPathSegmentContainerTests {
|
||||
testPath("/a/b/c", "/a/b/c", false, true, Arrays.asList("a", "b", "c"), false);
|
||||
|
||||
// root path
|
||||
testPath("/", "/", false, true, Collections.singletonList(""), false);
|
||||
testPath("/", "/", false, true, Collections.emptyList(), false);
|
||||
|
||||
// empty path
|
||||
testPath("", "", true, false, Collections.emptyList(), false);
|
||||
|
||||
Reference in New Issue
Block a user