Commit 7a5392d6 authored by Andy Wilkinson's avatar Andy Wilkinson

Polish

parent 82e1eca0
...@@ -167,8 +167,7 @@ public class UndertowWebServerFactoryCustomizer ...@@ -167,8 +167,7 @@ public class UndertowWebServerFactoryCustomizer
<T> Consumer<Map<String, String>> forEach(Function<Option<T>, Consumer<T>> function) { <T> Consumer<Map<String, String>> forEach(Function<Option<T>, Consumer<T>> function) {
return (map) -> map.forEach((key, value) -> { return (map) -> map.forEach((key, value) -> {
Option<T> option = (Option<T>) this.nameLookup.get(getCanonicalName(key)); Option<T> option = (Option<T>) this.nameLookup.get(getCanonicalName(key));
Assert.state(option != null, Assert.state(option != null, "Unable to find '" + key + "' in " + ClassUtils.getShortName(this.source));
"Unable to find '" + key + "' in " + ClassUtils.getShortName(this.source));
T parsed = option.parseValue(value, getClass().getClassLoader()); T parsed = option.parseValue(value, getClass().getClassLoader());
function.apply(option).accept(parsed); function.apply(option).accept(parsed);
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment