You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2022/02/19 08:52:04 UTC
[GitHub] [commons-compress] arturobernalg commented on a change in pull request #247: Use Math.min and Math.max calculations.
arturobernalg commented on a change in pull request #247:
URL: https://github.com/apache/commons-compress/pull/247#discussion_r810466553
##########
File path: src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZFile.java
##########
@@ -1361,7 +1361,7 @@ private void sanityCheckFilesInfo(final ByteBuffer header, final ArchiveStatisti
}
}
}
- stats.numberOfEntriesWithStream = stats.numberOfEntries - (emptyStreams > 0 ? emptyStreams : 0);
+ stats.numberOfEntriesWithStream = stats.numberOfEntries - (Math.max(emptyStreams, 0));
Review comment:
done.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org