Merge branch '2.0.x'

pull/14224/merge
Stephane Nicoll 6 years ago
commit 0590c4de32

@ -61,8 +61,8 @@ class DiscoveredWebOperation extends AbstractDiscoveredOperation implements WebO
}
private String getId(String endpointId, Method method) {
return Stream.of(method.getParameters()).filter(this::hasSelector)
.map(this::dashName).collect(Collectors.joining("", endpointId, ""));
return endpointId + Stream.of(method.getParameters()).filter(this::hasSelector)
.map(this::dashName).collect(Collectors.joining());
}
private boolean hasSelector(Parameter parameter) {

@ -62,8 +62,8 @@ class RequestPredicateFactory {
}
private String getPath(String rootPath, Method method) {
return Stream.of(method.getParameters()).filter(this::hasSelector)
.map(this::slashName).collect(Collectors.joining("", rootPath, ""));
return rootPath + Stream.of(method.getParameters()).filter(this::hasSelector)
.map(this::slashName).collect(Collectors.joining());
}
private boolean hasSelector(Parameter parameter) {

Loading…
Cancel
Save