Polish contribution

See gh-18736
pull/18811/head
Stephane Nicoll 5 years ago
parent f61da8b723
commit 11e0045ec6

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

@ -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);
}

Loading…
Cancel
Save