mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Replace Collections with Set.of/Map.of/List.of
This commit is contained in:
parent
bbdd6a8910
commit
a52f6a6657
4 changed files with 14 additions and 18 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue