Polish contribution

See gh-18736
This commit is contained in:
Stephane Nicoll 2019-10-29 08:34:48 +01:00
parent f61da8b723
commit 11e0045ec6
2 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ public enum ApiVersion {
try {
return valueOf(type.toUpperCase());
}
catch (IllegalArgumentException ignored) {
catch (IllegalArgumentException ex) {
}
}
return null;

View File

@ -65,13 +65,13 @@ public class PathMappedEndpoints implements Iterable<PathMappedEndpoint> {
private Map<EndpointId, PathMappedEndpoint> getEndpoints(Collection<EndpointsSupplier<?>> suppliers) {
Map<EndpointId, PathMappedEndpoint> endpoints = new LinkedHashMap<>();
for (EndpointsSupplier<?> supplier : suppliers) {
suppliers.forEach((supplier) -> {
supplier.getEndpoints().forEach((endpoint) -> {
if (endpoint instanceof PathMappedEndpoint) {
endpoints.put(endpoint.getEndpointId(), (PathMappedEndpoint) endpoint);
}
});
}
});
return Collections.unmodifiableMap(endpoints);
}