Replace Collections with Set.of/Map.of/List.of

This commit is contained in:
AsamK 2020-12-30 11:59:24 +01:00
parent bbdd6a8910
commit a52f6a6657
4 changed files with 14 additions and 18 deletions

View file

@ -16,7 +16,6 @@ import org.whispersystems.signalservice.api.util.InvalidNumberException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
@ -167,7 +166,7 @@ public class DbusSignalImpl implements Signal {
public List<String> getGroupMembers(final byte[] groupId) {
GroupInfo group = m.getGroup(GroupId.unknownVersion(groupId));
if (group == null) {
return Collections.emptyList();
return List.of();
} else {
return group.getMembers()
.stream()