remove extraneous ArrayList wrapper from ops key

This commit is contained in:
Vaci Koblizek 2020-11-27 11:30:12 +00:00
parent 250f14e2f4
commit a53f7db25e

View file

@ -704,8 +704,7 @@ public final class Capability {
if (redirect != null) {
return redirect.getPipelinedCap(ops);
}
var key = new ArrayList<>(Arrays.asList(ops));
var key = Arrays.asList(ops);
return this.clientMap.computeIfAbsent(key,
k -> new QueuedClient(this.promise.thenApply(
pipeline -> pipeline.getPipelinedCap(ops))));