garydgregory commented on a change in pull request #247:
URL: https://github.com/apache/commons-compress/pull/247#discussion_r810065740



##########
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:
       Parens around the call to max are not needed. 




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to