Fix completion

This commit is contained in:
Eric Bottard
2017-08-28 15:09:20 +02:00
parent be1603214d
commit 6f79cc2686

View File

@@ -109,9 +109,11 @@ public class StandardParameterResolver implements ParameterResolver {
}
@Override
public ValueResult resolve(MethodParameter methodParameter, List<String> words) {
public ValueResult resolve(MethodParameter methodParameter, List<String> wordsBuffer) {
String prefix = prefixForMethod(methodParameter.getMethod());
List<String> words = wordsBuffer.stream().filter(w -> !w.isEmpty()).collect(Collectors.toList());
CacheKey cacheKey = new CacheKey(methodParameter.getMethod(), words);
Map<Parameter, ParameterRawValue> resolved = parameterCache.computeIfAbsent(cacheKey, (k) -> {