Polish
This commit is contained in:
		
							parent
							
								
									82e1eca0ad
								
							
						
					
					
						commit
						7a5392d6bd
					
				| 
						 | 
					@ -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);
 | 
				
			||||||
			});
 | 
								});
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue