Description
There is a constructor of PathLocation as follows, it's for creating a new PathLocation with a prioritised nsId.
public PathLocation(PathLocation other, String firstNsId) { this.sourcePath = other.sourcePath; this.destOrder = other.destOrder; this.destinations = orderedNamespaces(other.destinations, firstNsId); }
When I was reading the code of MultipleDestinationMountTableResolver, I thought this constructor was to create a PathLocation with an override destination. It took me a while before I realize this is a constructor to sort the destinations inside.
Maybe I think this constructor can be more clear about its usage?