mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
bugfix: return lambda where caller expects
This commit is contained in:
parent
39128e71c9
commit
974bc2dc70
@ -472,7 +472,7 @@ public class ParsedTemplateMap implements LongFunction<Map<String, ?>>, StaticFi
|
||||
if (cfgsource.containsKey(name)) {
|
||||
Object object = cfgsource.get(name);
|
||||
if (type.isAssignableFrom(object.getClass())) {
|
||||
return Optional.of((LongFunction<V>) cfgsource.get(name));
|
||||
return Optional.of(l -> type.cast(cfgsource.get(name)));
|
||||
} else if (NBTypeConverter.canConvert(object, type)) {
|
||||
return Optional.of(l -> NBTypeConverter.convert(cfgsource.get(name), type));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user