UriComponentBuilder allows for multiple independent build() calls on same builder instance
Issue: SPR-11885
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user