-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Java 8's Streams used to create image lists
Make use of collect method of the Java 8 Stream's API and Collectors.collectingAndThen(Collectors.toList(),Collections::unmodifiableList) to return unmodifiable lists, as Collectors.toUnmodifiableList() is only available on Java 10+. This replaces creation of ArrayLists wrapped in unmodifiable lists by Java 8's Stream API users, so the extractors and their helper classes. Co-authored-by: Isira Seneviratne <[email protected]>
- Loading branch information
1 parent
823d874
commit 8cac434
Showing
5 changed files
with
35 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters