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 { try {
return valueOf(type.toUpperCase()); return valueOf(type.toUpperCase());
} }
catch (IllegalArgumentException ignored) { catch (IllegalArgumentException ex) {
} }
} }
return null; return null;

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

Loading…
Cancel
Save