Skip to content

Commit

Permalink
Make the list of ImageStorage objects retrieved from ImageStorageData…
Browse files Browse the repository at this point in the history
…Provider.Access.getImages(int) mutable (#1984)
  • Loading branch information
mklaehn authored Oct 10, 2024
1 parent 4da2358 commit c525444
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.util.SequencedSet;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentSkipListSet;
import java.util.stream.Collectors;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tweetwallfx.cache.URLContent;
Expand Down Expand Up @@ -175,7 +176,7 @@ public final int count() {
public final List<ImageStorage> getImages(final int maxCount) {
return imageStorages.stream()
.limit(maxCount)
.toList();
.collect(Collectors.toList()); // modifiable list
}
};
}
Expand Down

0 comments on commit c525444

Please sign in to comment.