Skip to content

Commit

Permalink
Refactor to simplify stream to collection
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedumbill committed Feb 29, 2024
1 parent 37b3d42 commit 8038ae4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Collection<AppleHealthRecord> readRecords() {
}

Collection<String> recordTypes() {
return readRecords().stream().map(AppleHealthRecord::getType).distinct().collect(Collectors.toList());
return readRecords().stream().map(AppleHealthRecord::getType).distinct().toList();
}

Map<String, Long> groupByCountRecordTypes() {
Expand Down

0 comments on commit 8038ae4

Please sign in to comment.