Utilize collect instead of toList.

This commit is contained in:
Alex Hart
2024-10-17 12:38:00 -03:00
parent 65996bca19
commit 99c9ba0b70

View File

@@ -1060,7 +1060,7 @@ public final class SignalCallManager implements CallManager.Observer, GroupCall.
.setPassword(turnServerInfo.getPassword()) .setPassword(turnServerInfo.getPassword())
.setHostname(turnServerInfo.getHostname()) .setHostname(turnServerInfo.getHostname())
.createIceServer() .createIceServer()
).toList()); ).collect(Collectors.toList()));
} }
if (turnServerInfo.getUrlsWithIps() != null) { if (turnServerInfo.getUrlsWithIps() != null) {
iceServers.addAll( iceServers.addAll(