Merge pull request #14221 from dreis2211:polish-joining-collectors
* pr/14221: Polish some joining collectors
This commit is contained in:
commit
3155abae5a
|
@ -61,8 +61,8 @@ class DiscoveredWebOperation extends AbstractDiscoveredOperation implements WebO
|
|||
}
|
||||
|
||||
private String getId(String endpointId, Method method) {
|
||||
return endpointId + Stream.of(method.getParameters()).filter(this::hasSelector)
|
||||
.map(this::dashName).collect(Collectors.joining());
|
||||
return Stream.of(method.getParameters()).filter(this::hasSelector)
|
||||
.map(this::dashName).collect(Collectors.joining("", endpointId, ""));
|
||||
}
|
||||
|
||||
private boolean hasSelector(Parameter parameter) {
|
||||
|
|
|
@ -62,8 +62,8 @@ class RequestPredicateFactory {
|
|||
}
|
||||
|
||||
private String getPath(String rootPath, Method method) {
|
||||
return rootPath + Stream.of(method.getParameters()).filter(this::hasSelector)
|
||||
.map(this::slashName).collect(Collectors.joining());
|
||||
return Stream.of(method.getParameters()).filter(this::hasSelector)
|
||||
.map(this::slashName).collect(Collectors.joining("", rootPath, ""));
|
||||
}
|
||||
|
||||
private boolean hasSelector(Parameter parameter) {
|
||||
|
|
Loading…
Reference in New Issue