UriComponentBuilder allows for multiple independent build() calls on same builder instance

Issue: SPR-11885
This commit is contained in:
Juergen Hoeller
2014-06-25 13:19:28 +02:00
parent f966bf683c
commit d239016a8c
2 changed files with 25 additions and 2 deletions

View File

@@ -664,7 +664,7 @@ final class HierarchicalUriComponents extends UriComponents {
private final List<String> pathSegments;
public PathSegmentComponent(List<String> pathSegments) {
this.pathSegments = Collections.unmodifiableList(pathSegments);
this.pathSegments = Collections.unmodifiableList(new ArrayList<String>(pathSegments));
}
@Override