This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch pack200 in repository https://gitbox.apache.org/repos/asf/commons-compress.git
The following commit(s) were added to refs/heads/pack200 by this push: new df4a2da Change for Apache Commons Compress based on Apache Harmony. df4a2da is described below commit df4a2da3de4b0ea4fc099ba29c5a8fc9ab2e4cb2 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Mon Aug 24 11:12:35 2020 -0400 Change for Apache Commons Compress based on Apache Harmony. Thanks to Peter Lee <peter...@apache.org>. --- src/main/java/org/apache/harmony/pack200/Archive.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/harmony/pack200/Archive.java b/src/main/java/org/apache/harmony/pack200/Archive.java index 92c0ca4..9b40ea3 100644 --- a/src/main/java/org/apache/harmony/pack200/Archive.java +++ b/src/main/java/org/apache/harmony/pack200/Archive.java @@ -168,7 +168,9 @@ public class Archive { files = new ArrayList(); } } - if (classes.size() > 0 && files.size() > 0) { + // Change for Apache Commons Compress based on Apache Harmony. + // if (classes.size() > 0 && files.size() > 0) { + if (classes.size() > 0 || files.size() > 0) { segmentUnitList.add(new SegmentUnit(classes, files)); } return segmentUnitList;