]> nmode's Git Repositories - signal-cli/blobdiff - lib/src/main/java/org/asamk/signal/manager/jobs/RetrieveStickerPackJob.java
Replace collect(Collectors.toList()) with toList()
[signal-cli] / lib / src / main / java / org / asamk / signal / manager / jobs / RetrieveStickerPackJob.java
index c27bcafcb745f9612be848cf277df548f17a75d5..5541304fd522bc30f97e4d4e9cab8b122e8adc7d 100644 (file)
@@ -10,7 +10,6 @@ import org.whispersystems.signalservice.internal.util.Hex;
 
 import java.io.IOException;
 import java.util.HashSet;
-import java.util.stream.Collectors;
 
 public class RetrieveStickerPackJob implements Job {
 
@@ -63,7 +62,7 @@ public class RetrieveStickerPackJob implements Job {
                             .map(c -> new JsonStickerPack.JsonSticker(c.getEmoji(),
                                     String.valueOf(c.getId()),
                                     c.getContentType()))
-                            .collect(Collectors.toList()));
+                            .toList());
             context.getStickerPackStore().storeManifest(packId, jsonManifest);
         } catch (IOException e) {
             logger.warn("Failed to retrieve sticker pack {}: {}",