Fixed - RSet.containsEach() method returns null instead of empty list.

pull/6384/head
Nikita Koksharov 3 weeks ago
parent 5b0c0d4194
commit be3cc5b2ef

@ -403,7 +403,7 @@ public class RedissonSet<V> extends RedissonExpirable implements RSet<V>, ScanIt
@Override
public RFuture<List<V>> containsEachAsync(Collection<V> c) {
if (c.isEmpty()) {
return new CompletableFutureWrapper<>((List<V>) Collections.emptyList());
return new CompletableFutureWrapper<>(Collections.<V>emptyList());
}
List<Object> args = new ArrayList<>(c.size() + 1);

Loading…
Cancel
Save