DATACMNS-1755 - Use method references in favor of lambdas.
Simplify several lambda expressions in the codebase by using method references. Original pull request: #448.
This commit is contained in:
committed by
Mark Paluch
parent
cb8443e299
commit
b42cdb6568
@@ -250,7 +250,7 @@ class EvaluationContextExtensionInformation {
|
||||
* @return the methods
|
||||
*/
|
||||
public MultiValueMap<String, Function> getFunctions(Optional<Object> target) {
|
||||
return target.map(this::getFunctions).orElseGet(() -> new LinkedMultiValueMap<>());
|
||||
return target.map(this::getFunctions).orElseGet(LinkedMultiValueMap::new);
|
||||
}
|
||||
|
||||
private MultiValueMap<String, Function> getFunctions(Object target) {
|
||||
|
||||
Reference in New Issue
Block a user