[
https://issues.apache.org/jira/browse/COMPRESS-578?focusedWorklogId=600853&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-600853
]
ASF GitHub Bot logged work on COMPRESS-578:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 22/May/21 15:47
Start Date: 22/May/21 15:47
Worklog Time Spent: 10m
Work Description: arturobernalg commented on a change in pull request
#194:
URL: https://github.com/apache/commons-compress/pull/194#discussion_r637418971
##########
File path:
src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java
##########
@@ -937,7 +936,7 @@ private void sanityCheckSubStreamsInfo(final ByteBuffer
header, final ArchiveSta
for (int i = 0; i < stats.numberOfFolders; i++) {
numUnpackSubStreamsPerFolder.add(assertFitsIntoNonNegativeInt("numStreams",
readUint64(header)));
}
- stats.numberOfUnpackSubStreams =
numUnpackSubStreamsPerFolder.stream().collect(Collectors.summingLong(Integer::longValue));
+ stats.numberOfUnpackSubStreams =
numUnpackSubStreamsPerFolder.stream().mapToLong(Integer::longValue).sum();
Review comment:
Agree. Changed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 600853)
Time Spent: 1h 20m (was: 1h 10m)
> Java 8 improvements
> -------------------
>
> Key: COMPRESS-578
> URL: https://issues.apache.org/jira/browse/COMPRESS-578
> Project: Commons Compress
> Issue Type: Sub-task
> Reporter: Arturo Bernal
> Priority: Major
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> * Use lambda alternative
> * Use reference
> * Replace Loop with Collection.removeIf()
> * Use mapToLong().sum()'
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)