commons-compress.git
3 months agoFix broken tests in SevenZMethodConfigurationTest.
Gary Gregory [Thu, 5 May 2022 17:47:42 +0000 (13:47 -0400)] 
Fix broken tests in SevenZMethodConfigurationTest.

3 months agoFix broken tests in SevenZFileTest.
Gary Gregory [Thu, 5 May 2022 17:45:55 +0000 (13:45 -0400)] 
Fix broken tests in SevenZFileTest.

3 months agoAdd SevenZArchiveEntry.setContentMethods(SevenZMethodConfiguration...).
Gary Gregory [Thu, 5 May 2022 17:39:43 +0000 (13:39 -0400)] 
Add SevenZArchiveEntry.setContentMethods(SevenZMethodConfiguration...).

3 months agoSort members.
Gary Gregory [Thu, 5 May 2022 17:34:12 +0000 (13:34 -0400)] 
Sort members.

3 months agoFormat.
Gary Gregory [Thu, 5 May 2022 17:34:00 +0000 (13:34 -0400)] 
Format.

3 months agoFix SevenZArchiveEntryTest.
Gary Gregory [Thu, 5 May 2022 17:33:32 +0000 (13:33 -0400)] 
Fix SevenZArchiveEntryTest.

3 months agoMost tests are no longer run since
Gary Gregory [Thu, 5 May 2022 17:27:09 +0000 (13:27 -0400)] 
Most tests are no longer run since
82ac0e1f2811aa39ceec0367aac031897947f1ad as determined using git bisect.

These test are only picked up by Maven using commons.surefire.version
from to 3.0.0-M6.

82ac0e1f2811aa39ceec0367aac031897947f1ad is the first bad commit
commit 82ac0e1f2811aa39ceec0367aac031897947f1ad
Author: Gary Gregory <garydgregory@gmail.com>
Date:   Sun Dec 26 18:47:22 2021 -0500

    Continue porting from JUnit 4 to JUnit 5.

 pom.xml                                            |  23 +-
 .../apache/commons/compress/AbstractTestCase.java  |   8 +-
 .../apache/commons/compress/ArchiveReadTest.java   |  45 ++--
 .../apache/commons/compress/ArchiveUtilsTest.java  |   4 +-
 .../apache/commons/compress/ChainingTestCase.java  |   2 +-
 .../commons/compress/DetectArchiverTestCase.java   |   2 +-
 .../org/apache/commons/compress/IOMethodsTest.java |   2 +-
 .../org/apache/commons/compress/OsgiITest.java     |   7 +-
 .../commons/compress/archivers/ArTestCase.java     |   8 +-
 .../archivers/ArchiveOutputStreamTest.java         |   2 +-
 .../archivers/ArchiveServiceLoaderTest.java        |   6 +-
 .../archivers/ArchiveStreamFactoryTest.java        |   6 +-
 .../commons/compress/archivers/CpioTestCase.java   |   2 +-
 .../commons/compress/archivers/DumpTestCase.java   |   2 +-
 .../compress/archivers/ExceptionMessageTest.java   |   2 +-
 .../commons/compress/archivers/JarTestCase.java    |   2 +-
 .../commons/compress/archivers/LongPathTest.java   |  53 ++---
 .../compress/archivers/LongSymLinkTest.java        |  39 ++-
 .../commons/compress/archivers/SevenZTestCase.java |   6 +-
 .../commons/compress/archivers/TarTestCase.java    |   2 +-
 .../commons/compress/archivers/ZipTestCase.java    |   8 +-
 .../archivers/ar/ArArchiveInputStreamTest.java     |   6 +-
 .../archivers/ar/ArArchiveOutputStreamTest.java    |   2 +-
 .../archivers/arj/ArjArchiveInputStreamTest.java   |   2 +-
 .../compress/archivers/arj/CoverageTest.java       |   2 +-
 .../archivers/cpio/CpioArchiveInputStreamTest.java |   2 +-
 .../cpio/CpioArchiveOutputStreamTest.java          |   2 +-
 .../compress/archivers/cpio/CpioArchiveTest.java   |  35 ++-
 .../compress/archivers/cpio/CpioUtilTest.java      |   8 +-
 .../archivers/dump/DumpArchiveEntryTest.java       |   2 +-
 .../archivers/dump/DumpArchiveInputStreamTest.java |   2 +-
 .../archivers/dump/DumpArchiveUtilTest.java        |   2 +-
 .../compress/archivers/examples/ExpanderTest.java  |   6 +-
 .../examples/ParameterizedArchiverTest.java        |  67 +++---
 .../examples/ParameterizedExpanderTest.java        |  77 +++---
 .../archivers/examples/SevenZArchiverTest.java     |  10 +-
 .../archivers/jar/JarArchiveOutputStreamTest.java  |   2 +-
 .../compress/archivers/jar/JarMarkerTest.java      |   5 +-
 .../archivers/memory/MemoryArchiveTestCase.java    |   3 +-
 .../archivers/sevenz/AES256SHA256DecoderTest.java  |   2 +-
 .../compress/archivers/sevenz/CoverageTest.java    |  10 +-
 .../compress/archivers/sevenz/FolderTest.java      |   2 +-
 .../archivers/sevenz/SevenZArchiveEntryTest.java   |   8 +-
 .../compress/archivers/sevenz/SevenZFileTest.java  |   4 +-
 .../sevenz/SevenZMethodConfigurationTest.java      |   6 +-
 .../archivers/sevenz/SevenZNativeHeapTest.java     |   2 +-
 .../archivers/sevenz/SevenZOutputFileTest.java     |   2 +-
 .../commons/compress/archivers/tar/BigFilesIT.java |   2 +-
 .../compress/archivers/tar/SparseFilesTest.java    |   2 +-
 .../archivers/tar/TarArchiveEntryTest.java         |  51 ++--
 .../archivers/tar/TarArchiveInputStreamTest.java   |  18 +-
 .../archivers/tar/TarArchiveOutputStreamTest.java  |   6 +-
 .../compress/archivers/tar/TarFileTest.java        |  18 +-
 .../archivers/tar/TarMemoryFileSystemTest.java     |   2 +-
 .../compress/archivers/tar/TarUtilsTest.java       |   2 +-
 .../compress/archivers/zip/AsiExtraFieldTest.java  |   2 +-
 .../compress/archivers/zip/BinaryTreeTest.java     |   4 +-
 .../compress/archivers/zip/BitStreamTest.java      |   2 +-
 .../compress/archivers/zip/CircularBufferTest.java |   2 +-
 .../compress/archivers/zip/DataDescriptorTest.java |  10 +-
 .../archivers/zip/EncryptedArchiveTest.java        |   4 +-
 .../compress/archivers/zip/ExplodeSupportTest.java |   2 +-
 .../archivers/zip/ExtraFieldUtilsTest.java         |   6 +-
 .../archivers/zip/GeneralPurposeBitTest.java       |   2 +-
 .../archivers/zip/Maven221MultiVolumeTest.java     |   4 +-
 .../compress/archivers/zip/NioZipEncodingTest.java |   2 +-
 .../zip/ParallelScatterZipCreatorTest.java         |  10 +-
 .../archivers/zip/PkWareExtraHeaderTest.java       |   2 +-
 .../compress/archivers/zip/ScatterSampleTest.java  |   2 +-
 .../archivers/zip/ScatterZipOutputStreamTest.java  |   6 +-
 .../archivers/zip/StreamCompressorTest.java        |   2 +-
 .../compress/archivers/zip/UTF8ZipFilesTest.java   |   2 +-
 .../compress/archivers/zip/X000A_NTFSTest.java     |   2 +-
 .../archivers/zip/X5455_ExtendedTimestampTest.java |  10 +-
 .../compress/archivers/zip/X7875_NewUnixTest.java  |   6 +-
 .../Zip64ExtendedInformationExtraFieldTest.java    |   2 +-
 .../compress/archivers/zip/Zip64SupportIT.java     |   2 +-
 .../archivers/zip/ZipArchiveEntryTest.java         |   2 +-
 .../archivers/zip/ZipArchiveInputStreamTest.java   |   4 +-
 .../archivers/zip/ZipClassCoverageTest.java        |   2 +-
 .../archivers/zip/ZipEightByteIntegerTest.java     |   2 +-
 .../compress/archivers/zip/ZipEncodingTest.java    |   2 +-
 .../zip/ZipFileIgnoringLocalFileHeaderTest.java    |  10 +-
 .../compress/archivers/zip/ZipFileTest.java        |  16 +-
 .../compress/archivers/zip/ZipLongTest.java        |   2 +-
 .../archivers/zip/ZipMemoryFileSystemTest.java     |  10 +-
 .../compress/archivers/zip/ZipShortTest.java       |   4 +-
 .../archivers/zip/ZipSplitOutputStreamTest.java    |   2 +-
 .../compress/archivers/zip/ZipUtilTest.java        |  10 +-
 .../compress/changes/ChangeSetTestCase.java        |   2 +-
 .../commons/compress/changes/ChangeTest.java       |   8 +-
 .../compress/compressors/BZip2TestCase.java        |   2 +-
 .../compress/compressors/BZip2UtilsTestCase.java   |   2 +-
 .../compressors/CompressorServiceLoaderTest.java   |   6 +-
 .../CompressorStreamFactoryRoundtripTest.java      |  44 ++--
 .../compress/compressors/DeflateTestCase.java      |   2 +-
 .../compressors/DetectCompressorTestCase.java      |  10 +-
 .../compress/compressors/FramedSnappyTestCase.java |   2 +-
 .../commons/compress/compressors/GZipTestCase.java |   2 +-
 .../compress/compressors/GzipUtilsTestCase.java    |   2 +-
 .../commons/compress/compressors/LZMATestCase.java |   2 +-
 .../compress/compressors/Pack200TestCase.java      |   2 +-
 .../commons/compress/compressors/XZTestCase.java   |   3 +-
 .../commons/compress/compressors/ZTestCase.java    |   2 +-
 .../brotli/BrotliCompressorInputStreamTest.java    |   2 +-
 .../bzip2/BZip2CompressorInputStreamTest.java      |   8 +-
 .../bzip2/BZip2NSelectorsOverflowTest.java         |   2 +-
 .../compress/compressors/bzip2/BlockSortTest.java  |   2 +-
 .../bzip2/PythonTruncatedBzip2Test.java            |  16 +-
 .../deflate/DeflateCompressorInputStreamTest.java  |   2 +-
 .../deflate/DeflateCompressorOutputStreamTest.java |   2 +-
 .../compressors/deflate/DeflateParametersTest.java |   6 +-
 .../compressors/deflate64/Deflate64BugsTest.java   |   2 +-
 .../Deflate64CompressorInputStreamTest.java        | 263
+++++++++++----------
 .../compressors/deflate64/HuffmanDecoderTest.java  |   2 +-
 .../lz4/BlockLZ4CompressorInputStreamTest.java     |   2 +-
 .../lz4/BlockLZ4CompressorOutputStreamTest.java    |   8 +-
 .../lz4/BlockLZ4CompressorRoundtripTest.java       |  54 ++---
 .../compress/compressors/lz4/FactoryTest.java      |   2 +-
 .../lz4/FramedLZ4CompressorInputStreamTest.java    |   4 +-
 .../lz4/FramedLZ4CompressorRoundtripTest.java      |  69 +++---
 .../compress/compressors/lz4/XXHash32Test.java     |  39 ++-
 .../AbstractLZ77CompressorInputStreamTest.java     |   4 +-
 .../lz77support/LZ77CompressorTest.java            |   6 +-
 .../compressors/lz77support/ParametersTest.java    |   6 +-
 .../compressors/lzma/LZMAUtilsTestCase.java        |   2 +-
 .../compressors/pack200/Pack200UtilsTest.java      |   2 +-
 .../FramedSnappyCompressorInputStreamTest.java     |   2 +-
 .../compressors/snappy/SnappyRoundtripTest.java    |   2 +-
 .../xz/XZCompressorInputStreamTest.java            |   2 +-
 .../xz/XZCompressorOutputStreamTest.java           |   2 +-
 .../compress/compressors/xz/XZUtilsTestCase.java   |   2 +-
 .../compressors/z/ZCompressorInputStreamTest.java  |   4 +-
 .../zstandard/ZstdCompressorInputStreamTest.java   |   2 +-
 .../compressors/zstandard/ZstdRoundtripTest.java   |   2 +-
 .../compressors/zstandard/ZstdUtilsTest.java       |   2 +-
 .../Codec_decodeInts_OutOfMemoryErrorTest.java     |   6 +-
 .../commons/compress/utils/BitInputStreamTest.java |   6 +-
 .../BoundedSeekableByteChannelInputStreamTest.java |   2 +-
 .../commons/compress/utils/ByteUtilsTest.java      |  18 +-
 .../commons/compress/utils/CharsetsTest.java       |   3 +-
 .../utils/ChecksumCalculatingInputStreamTest.java  |   8 +-
 .../utils/ChecksumVerifyingInputStreamTest.java    |   6 +-
 .../commons/compress/utils/CountingStreamTest.java |   4 +-
 .../commons/compress/utils/FileNameUtilsTest.java  |   2 +-
 .../utils/FixedLengthBlockOutputStreamTest.java    |   2 +-
 .../apache/commons/compress/utils/IOUtilsTest.java |  10 +-
 .../MultiReadOnlySeekableByteChannelTest.java      |   6 +-
 .../commons/compress/utils/OsgiUtilsTest.java      |   2 +-
 .../utils/SeekableInMemoryByteChannelTest.java     |  30 +--
 .../compress/utils/ServiceLoaderIteratorTest.java  |   6 +-
 .../utils/SkipShieldingInputStreamTest.java        |   2 +-
 .../ZipSplitReadOnlySeekableByteChannelTest.java   |   6 +-
 153 files changed, 731 insertions(+), 759 deletions(-)

3 months agoBump commons.jacoco.version from 0.8.7 to 0.8.8
Gary Gregory [Thu, 5 May 2022 13:34:46 +0000 (09:34 -0400)] 
Bump commons.jacoco.version from 0.8.7 to 0.8.8

3 months agoRefactor commons code.
Gary Gregory [Thu, 5 May 2022 13:29:36 +0000 (09:29 -0400)] 
Refactor commons code.

3 months agoSort members.
Gary Gregory [Thu, 5 May 2022 13:26:17 +0000 (09:26 -0400)] 
Sort members.

3 months agoChecksumVerifyingInputStream.read() does not always validate checksum at
Gary Gregory [Thu, 5 May 2022 13:26:04 +0000 (09:26 -0400)] 
ChecksumVerifyingInputStream.read() does not always validate checksum at
end-of-stream.

3 months agoJavadoc & use a ternary expression.
Gary Gregory [Thu, 5 May 2022 13:23:46 +0000 (09:23 -0400)] 
Javadoc & use a ternary expression.

3 months agoRemove unused exception from private method signature.
Gary Gregory [Thu, 5 May 2022 13:14:59 +0000 (09:14 -0400)] 
Remove unused exception from private method signature.

3 months agoBump maven-javadoc-plugin from 3.3.2 to 3.4.0
dependabot[bot] [Fri, 29 Apr 2022 05:04:59 +0000 (05:04 +0000)] 
Bump maven-javadoc-plugin from 3.3.2 to 3.4.0

Bumps [maven-javadoc-plugin](https://github.com/apache/maven-javadoc-plugin) from 3.3.2 to 3.4.0.
- [Release notes](https://github.com/apache/maven-javadoc-plugin/releases)
- [Commits](https://github.com/apache/maven-javadoc-plugin/compare/maven-javadoc-plugin-3.3.2...maven-javadoc-plugin-3.4.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-javadoc-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 months agoBump github/codeql-action from 1 to 2
dependabot[bot] [Fri, 29 Apr 2022 04:28:46 +0000 (04:28 +0000)] 
Bump github/codeql-action from 1 to 2

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
3 months agoAvoid use C-style array declaration. #282
Gary Gregory [Fri, 22 Apr 2022 21:10:27 +0000 (17:10 -0400)] 
Avoid use C-style array declaration. #282

3 months agoAvoid use C-style array declaration. (#282)
Arturo Bernal [Fri, 22 Apr 2022 21:09:40 +0000 (23:09 +0200)] 
Avoid use C-style array declaration. (#282)

3 months agoRemove Unnecessary interface modifiers #281
Gary Gregory [Fri, 22 Apr 2022 18:26:24 +0000 (14:26 -0400)] 
Remove Unnecessary interface modifiers #281

3 months agoRemove Unnecessary interface modifier (#281)
Arturo Bernal [Fri, 22 Apr 2022 18:25:53 +0000 (20:25 +0200)] 
Remove Unnecessary interface modifier (#281)

3 months agoUse compare method #285
Gary Gregory [Fri, 22 Apr 2022 18:23:48 +0000 (14:23 -0400)] 
Use compare method #285

3 months agoUse java API compare instead of do it manual. (#285)
Arturo Bernal [Fri, 22 Apr 2022 18:23:08 +0000 (20:23 +0200)] 
Use java API compare instead of do it manual. (#285)

3 months agoInline variable. Remove redundant local variable. #283
Gary Gregory [Fri, 22 Apr 2022 18:22:10 +0000 (14:22 -0400)] 
Inline variable. Remove redundant local variable. #283

3 months agoInline variable. Remove redundant local variable. (#283)
Arturo Bernal [Fri, 22 Apr 2022 18:21:42 +0000 (20:21 +0200)] 
Inline variable. Remove redundant local variable. (#283)

3 months agoUse StringBuilder instead of StringBuffer. #284
Gary Gregory [Fri, 22 Apr 2022 18:20:27 +0000 (14:20 -0400)] 
Use StringBuilder instead of StringBuffer. #284

3 months agoUse StringBuilder instead of StringBuffer. (#284)
Arturo Bernal [Fri, 22 Apr 2022 18:19:36 +0000 (20:19 +0200)] 
Use StringBuilder instead of StringBuffer. (#284)

3 months agoBump mockito.version from 4.4.0 to 4.5.1 #286
Gary Gregory [Fri, 22 Apr 2022 18:19:00 +0000 (14:19 -0400)] 
Bump mockito.version from 4.4.0 to 4.5.1 #286

3 months agoBump mockito.version from 4.4.0 to 4.5.1 (#286)
dependabot[bot] [Fri, 22 Apr 2022 18:18:18 +0000 (14:18 -0400)] 
Bump mockito.version from 4.4.0 to 4.5.1 (#286)

Bumps `mockito.version` from 4.4.0 to 4.5.1.

Updates `mockito-core` from 4.4.0 to 4.5.1
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.4.0...v4.5.1)

Updates `mockito-junit-jupiter` from 4.4.0 to 4.5.1
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.4.0...v4.5.1)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:development
  update-type: version-update:semver-minor
- dependency-name: org.mockito:mockito-junit-jupiter
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 months agoBump actions/setup-java from 2 to 3
dependabot[bot] [Fri, 15 Apr 2022 07:25:49 +0000 (07:25 +0000)] 
Bump actions/setup-java from 2 to 3

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2 to 3.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
3 months agoBump asm from 9.2 to 9.3
dependabot[bot] [Fri, 15 Apr 2022 07:12:27 +0000 (07:12 +0000)] 
Bump asm from 9.2 to 9.3

Bumps asm from 9.2 to 9.3.

---
updated-dependencies:
- dependency-name: org.ow2.asm:asm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 months agoBump commons-parent from 52 to 53
dependabot[bot] [Fri, 15 Apr 2022 04:38:59 +0000 (04:38 +0000)] 
Bump commons-parent from 52 to 53

Bumps commons-parent from 52 to 53.

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-parent
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
3 months agoBump actions/cache from 3 to 3.0.2
Gary Gregory [Tue, 12 Apr 2022 12:06:18 +0000 (08:06 -0400)] 
Bump actions/cache from 3 to 3.0.2

4 months agoBump slf4j-api from 1.7.35 to 1.7.36
dependabot[bot] [Fri, 25 Mar 2022 04:33:30 +0000 (04:33 +0000)] 
Bump slf4j-api from 1.7.35 to 1.7.36

Bumps [slf4j-api](https://github.com/qos-ch/slf4j) from 1.7.35 to 1.7.36.
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](https://github.com/qos-ch/slf4j/compare/v_1.7.35...v_1.7.36)

---
updated-dependencies:
- dependency-name: org.slf4j:slf4j-api
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
4 months agoBump actions/cache from 2.1.7 to 3
dependabot[bot] [Fri, 25 Mar 2022 04:01:21 +0000 (04:01 +0000)] 
Bump actions/cache from 2.1.7 to 3

Bumps [actions/cache](https://github.com/actions/cache) from 2.1.7 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.7...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
4 months ago[COMPRESS-598] Refactor commons code.
Gary Gregory [Fri, 18 Mar 2022 20:09:43 +0000 (16:09 -0400)] 
[COMPRESS-598] Refactor commons code.

4 months ago[COMPRESS-598] The NullPointerException now carries a simple message.
Gary Gregory [Fri, 18 Mar 2022 20:08:25 +0000 (16:08 -0400)] 
[COMPRESS-598] The NullPointerException now carries a simple message.

4 months agoTests COMPRESS-598.
Gary Gregory [Fri, 18 Mar 2022 19:58:31 +0000 (15:58 -0400)] 
Tests COMPRESS-598.

4 months agoBump commons.japicmp.version from 0.15.6 to 0.15.7.
Gary Gregory [Fri, 18 Mar 2022 18:58:56 +0000 (14:58 -0400)] 
Bump commons.japicmp.version from 0.15.6 to 0.15.7.

4 months agoReformat instance variables without the extra whitespace.
Gary Gregory [Fri, 18 Mar 2022 18:57:04 +0000 (14:57 -0400)] 
Reformat instance variables without the extra whitespace.

4 months agoSort members.
Gary Gregory [Fri, 18 Mar 2022 18:50:39 +0000 (14:50 -0400)] 
Sort members.

4 months agoJavadoc: Clean up HTML tags.
Gary Gregory [Fri, 18 Mar 2022 18:45:33 +0000 (14:45 -0400)] 
Javadoc: Clean up HTML tags.

4 months agoFix Javadoc error: "error: unexpected end tag: </p>"
Gary Gregory [Fri, 18 Mar 2022 18:33:57 +0000 (14:33 -0400)] 
Fix Javadoc error: "error: unexpected end tag: </p>"

4 months agoMerge branch 'master' of https://gitbox.apache.org/repos/asf/commons-compress.git
Gary Gregory [Fri, 18 Mar 2022 18:29:35 +0000 (14:29 -0400)] 
Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-compress.git

4 months ago[COMPRESS-612] Improve TAR support for file times #254
Gary Gregory [Fri, 18 Mar 2022 18:29:27 +0000 (14:29 -0400)] 
[COMPRESS-612] Improve TAR support for file times #254

4 months agoMerge branch 'master' of https://gitbox.apache.org/repos/asf/commons-compress.git
Gary Gregory [Fri, 18 Mar 2022 18:27:56 +0000 (14:27 -0400)] 
Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-compress.git

4 months ago[COMPRESS-612] improve TAR support for file times (#254)
Andre Brait [Fri, 18 Mar 2022 18:27:29 +0000 (19:27 +0100)] 
[COMPRESS-612] improve TAR support for file times (#254)

* COMPRESS-612: improve TAR support for file times

R/W atime and ctime support for XSTAR/XUSTAR/POSIX
R/W high precision (100ns increments) time support for POSIX
Read support for atime and ctime for OLDGNU/GNU
Use FileTime instead of Date to allow for higher precision

* COMPRESS-612: split ctime and birthtime

* COMPRESS-612: address review notes, more tests

* COMPRESS-612: Test older formats, add comments

* COMPRESS-612: Fix GNU tar tests

* COMPRESS-612: Improve documentation

4 months agoBump maven-pmd-plugin from 3.15.0 to 3.16.0 #255
Gary Gregory [Fri, 18 Mar 2022 18:18:45 +0000 (14:18 -0400)] 
Bump maven-pmd-plugin from 3.15.0 to 3.16.0 #255

4 months agoBump maven-pmd-plugin from 3.15.0 to 3.16.0 (#255)
dependabot[bot] [Fri, 18 Mar 2022 18:17:38 +0000 (14:17 -0400)] 
Bump maven-pmd-plugin from 3.15.0 to 3.16.0 (#255)

Bumps [maven-pmd-plugin](https://github.com/apache/maven-pmd-plugin) from 3.15.0 to 3.16.0.
- [Release notes](https://github.com/apache/maven-pmd-plugin/releases)
- [Commits](https://github.com/apache/maven-pmd-plugin/compare/maven-pmd-plugin-3.15.0...maven-pmd-plugin-3.16.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-pmd-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 months ago[COMPRESS-604] Ensure compatibility with Java 8 #252
Gary Gregory [Fri, 11 Mar 2022 11:47:01 +0000 (06:47 -0500)] 
[COMPRESS-604] Ensure compatibility with Java 8 #252

4 months agoCOMPRESS-604: Ensure compatibility with Java 8 (#252)
Andre Brait [Fri, 11 Mar 2022 11:44:28 +0000 (12:44 +0100)] 
COMPRESS-604: Ensure compatibility with Java 8 (#252)

* COMPRESS-604: ensure compatibility with Java 8

Switch --release from 9 to 8 when building with JDK 9+

* COMPRESS-604: remove outdated warning for JDK 14+

4 months agoOrganize.
Gary Gregory [Fri, 11 Mar 2022 11:44:12 +0000 (06:44 -0500)] 
Organize.

4 months agoBump mockito.version from 4.3.1 to 4.4.0 #253
Gary Gregory [Fri, 11 Mar 2022 11:43:42 +0000 (06:43 -0500)] 
Bump mockito.version from 4.3.1 to 4.4.0 #253

4 months agoBump mockito.version from 4.3.1 to 4.4.0 (#253)
dependabot[bot] [Fri, 11 Mar 2022 11:42:25 +0000 (06:42 -0500)] 
Bump mockito.version from 4.3.1 to 4.4.0 (#253)

Bumps `mockito.version` from 4.3.1 to 4.4.0.

Updates `mockito-core` from 4.3.1 to 4.4.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.3.1...v4.4.0)

Updates `mockito-junit-jupiter` from 4.3.1 to 4.4.0
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.3.1...v4.4.0)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:development
  update-type: version-update:semver-minor
- dependency-name: org.mockito:mockito-junit-jupiter
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 months agoBump actions/checkout from 2 to 3 #251
Gary Gregory [Sat, 5 Mar 2022 18:22:06 +0000 (13:22 -0500)] 
Bump actions/checkout from 2 to 3 #251

5 months agoBump actions/checkout from 2 to 3 (#251)
dependabot[bot] [Sat, 5 Mar 2022 18:21:07 +0000 (13:21 -0500)] 
Bump actions/checkout from 2 to 3 (#251)

Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 months agoReplace package with verify in the default goal.
Gary Gregory [Fri, 4 Mar 2022 14:44:31 +0000 (09:44 -0500)] 
Replace package with verify in the default goal.

5 months agoBump zstd-jni from 1.5.2-1 to 1.5.2-2 #250
Gary Gregory [Fri, 25 Feb 2022 12:37:06 +0000 (07:37 -0500)] 
Bump zstd-jni from 1.5.2-1 to 1.5.2-2 #250

5 months agoBump zstd-jni from 1.5.2-1 to 1.5.2-2 (#250)
dependabot[bot] [Fri, 25 Feb 2022 12:36:27 +0000 (07:36 -0500)] 
Bump zstd-jni from 1.5.2-1 to 1.5.2-2 (#250)

Bumps [zstd-jni](https://github.com/luben/zstd-jni) from 1.5.2-1 to 1.5.2-2.
- [Release notes](https://github.com/luben/zstd-jni/releases)
- [Commits](https://github.com/luben/zstd-jni/compare/v1.5.2-1...v1.5.2-2)

---
updated-dependencies:
- dependency-name: com.github.luben:zstd-jni
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 months agoBump maven-javadoc-plugin from 3.3.1 to 3.3.2 (#249)
Gary Gregory [Fri, 25 Feb 2022 12:36:06 +0000 (07:36 -0500)] 
Bump maven-javadoc-plugin from 3.3.1 to 3.3.2 (#249)

5 months agoBump maven-javadoc-plugin from 3.3.1 to 3.3.2 (#249)
dependabot[bot] [Fri, 25 Feb 2022 12:30:42 +0000 (07:30 -0500)] 
Bump maven-javadoc-plugin from 3.3.1 to 3.3.2 (#249)

Bumps [maven-javadoc-plugin](https://github.com/apache/maven-javadoc-plugin) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/apache/maven-javadoc-plugin/releases)
- [Commits](https://github.com/apache/maven-javadoc-plugin/compare/maven-javadoc-plugin-3.3.1...maven-javadoc-plugin-3.3.2)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-javadoc-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 months agoNull-guard and fix lower case. Fix typo.
Gary Gregory [Sun, 20 Feb 2022 00:42:02 +0000 (19:42 -0500)] 
Null-guard and fix lower case. Fix typo.

5 months agoMinor change: (#206)
Arturo Bernal [Sun, 20 Feb 2022 00:38:51 +0000 (01:38 +0100)] 
Minor change: (#206)

* Simplify conditions
* Make final var

5 months agoUse Math.min and Math.max calculations. #247
Gary Gregory [Sun, 20 Feb 2022 00:35:55 +0000 (19:35 -0500)] 
Use Math.min and Math.max calculations. #247

5 months agoUse Math.min alculations.
Gary Gregory [Sun, 20 Feb 2022 00:34:41 +0000 (19:34 -0500)] 
Use Math.min alculations.

5 months agoUse Math.min and Math.max calculations. (#247)
Arturo Bernal [Sun, 20 Feb 2022 00:32:57 +0000 (01:32 +0100)] 
Use Math.min and Math.max calculations. (#247)

5 months agobzip2: calculate median-of-3 on unsigned values #242.
Gary Gregory [Thu, 17 Feb 2022 20:01:11 +0000 (15:01 -0500)] 
bzip2: calculate median-of-3 on unsigned values #242.

5 months agoCalculate median-of-3 on unsigned values (#242)
Peter Dettman [Thu, 17 Feb 2022 19:59:10 +0000 (02:59 +0700)] 
Calculate median-of-3 on unsigned values (#242)

5 months agoUse {} notation.
Gary Gregory [Mon, 14 Feb 2022 15:56:06 +0000 (10:56 -0500)] 
Use {} notation.

5 months agoUse final.
Gary Gregory [Mon, 14 Feb 2022 15:50:11 +0000 (10:50 -0500)] 
Use final.

5 months agoFix thread safety issues when encoding 7z password #248.
Gary Gregory [Mon, 14 Feb 2022 15:48:52 +0000 (10:48 -0500)] 
Fix thread safety issues when encoding 7z password #248.

5 months agoFix thread safety issues when encoding 7z password (#248)
Glavo [Mon, 14 Feb 2022 15:45:40 +0000 (23:45 +0800)] 
Fix thread safety issues when encoding 7z password (#248)

SevenZFile instances are not thread-safe but it is reasonable to be able to create multiple instances from different threads.

5 months agoClearer private instance variable name.
Gary Gregory [Sun, 13 Feb 2022 22:55:30 +0000 (17:55 -0500)] 
Clearer private instance variable name.

5 months agoFormat nit.
Gary Gregory [Sun, 13 Feb 2022 22:52:05 +0000 (17:52 -0500)] 
Format nit.

5 months agoSort members.
Gary Gregory [Sun, 13 Feb 2022 22:50:21 +0000 (17:50 -0500)] 
Sort members.

5 months agoTest reading APK files for samples generated by Android Studio.
Gary Gregory [Sun, 13 Feb 2022 22:14:16 +0000 (17:14 -0500)] 
Test reading APK files for samples generated by Android Studio.

Android Studio Bumblebee | 2021.1.1 Patch 1
Build #AI-211.7628.21.2111.8139111, built on February 1, 2022
Runtime version: 11.0.11+9-b60-7590822 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin
(211-1.6.10-release-923-AS7442.40)

5 months agoExpander example now has NIO Path versions of IO File APIs.
Gary Gregory [Sun, 13 Feb 2022 22:00:15 +0000 (17:00 -0500)] 
Expander example now has NIO Path versions of IO File APIs.

5 months agoArchiveStreamFactory.createArchiveInputStream(String, InputStream,
Gary Gregory [Sun, 13 Feb 2022 21:59:16 +0000 (16:59 -0500)] 
ArchiveStreamFactory.createArchiveInputStream(String, InputStream,
String) supports the "APK" format (it's a JAR).

5 months agoIn most IOUtil methods,the target may be null to simulate output to
Gary Gregory [Sun, 13 Feb 2022 21:48:37 +0000 (16:48 -0500)] 
In most IOUtil methods,the target may be null to simulate output to
dev/null on Linux and NUL on Windows.

Used a next commit.

5 months agoClearer local variable name.
Gary Gregory [Sun, 13 Feb 2022 17:33:21 +0000 (12:33 -0500)] 
Clearer local variable name.

5 months agoReplace manual copy of array contents with System.arraycopy() #246.
Gary Gregory [Sun, 13 Feb 2022 16:00:55 +0000 (11:00 -0500)] 
Replace manual copy of array contents with System.arraycopy() #246.

5 months agoReplace manual copy of array contents with System.arraycopy(). (#246)
Arturo Bernal [Sun, 13 Feb 2022 16:00:21 +0000 (17:00 +0100)] 
Replace manual copy of array contents with System.arraycopy(). (#246)

5 months agoReplace manual comparisons with Comparator.comparingInt() #244.
Gary Gregory [Sun, 13 Feb 2022 15:58:39 +0000 (10:58 -0500)] 
Replace manual comparisons with Comparator.comparingInt() #244.

5 months agoReplace manual comparisons with Comparator.comparingInt() (#244)
Arturo Bernal [Sun, 13 Feb 2022 15:57:50 +0000 (16:57 +0100)] 
Replace manual comparisons with Comparator.comparingInt() (#244)

5 months agoReplace wrapper Collections.sort is with an instance method directly.
Gary Gregory [Sun, 13 Feb 2022 15:57:12 +0000 (10:57 -0500)] 
Replace wrapper Collections.sort is with an instance method directly.
#245.

5 months agoBump mockito-core from 4.2.0 to 4.3.1 #243.
Gary Gregory [Sun, 13 Feb 2022 15:56:39 +0000 (10:56 -0500)] 
Bump mockito-core from 4.2.0 to 4.3.1 #243.

5 months agoReplace wrapper Collections.sort is with an instance method directly. (#245)
Arturo Bernal [Sun, 13 Feb 2022 15:53:39 +0000 (16:53 +0100)] 
Replace wrapper Collections.sort is with an instance method directly. (#245)

5 months agoBump mockito.version from 4.2.0 to 4.3.1 (#243)
dependabot[bot] [Sun, 13 Feb 2022 15:50:24 +0000 (10:50 -0500)] 
Bump mockito.version from 4.2.0 to 4.3.1 (#243)

Bumps `mockito.version` from 4.2.0 to 4.3.1.

Updates `mockito-core` from 4.2.0 to 4.3.1
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.2.0...v4.3.1)

Updates `mockito-junit-jupiter` from 4.2.0 to 4.3.1
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.2.0...v4.3.1)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:development
  update-type: version-update:semver-minor
- dependency-name: org.mockito:mockito-junit-jupiter
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 months agoAdd APK file extension constants: ArchiveStreamFactory.APK, APKM, APKS,
Gary Gregory [Sun, 13 Feb 2022 15:47:54 +0000 (10:47 -0500)] 
Add APK file extension constants: ArchiveStreamFactory.APK, APKM, APKS,
XAPK.

5 months agoStart sentence with a capital.
Gary Gregory [Sun, 13 Feb 2022 15:18:45 +0000 (10:18 -0500)] 
Start sentence with a capital.

5 months agoJavadoc.
Gary Gregory [Sun, 13 Feb 2022 15:17:05 +0000 (10:17 -0500)] 
Javadoc.

5 months agoJavadoc.
Gary Gregory [Thu, 10 Feb 2022 19:37:52 +0000 (14:37 -0500)] 
Javadoc.

5 months agoCOMPRESS-603
PeterAlfredLee [Wed, 9 Feb 2022 07:44:19 +0000 (15:44 +0800)] 
COMPRESS-603

Expander should be able to work if an entry's name is "./".

5 months agoAddress CodeQL issues in pack200/unpack200 packages.
Gary Gregory [Wed, 9 Feb 2022 02:15:23 +0000 (21:15 -0500)] 
Address CodeQL issues in pack200/unpack200 packages.

Throw ArithmeticExceptioninstead of silently overflowing.

5 months agoAddress CodeQL issues in pack200/unpack200 packages.
Gary Gregory [Wed, 9 Feb 2022 01:59:31 +0000 (20:59 -0500)] 
Address CodeQL issues in pack200/unpack200 packages.

Throw ArithmeticExceptioninstead of silently overflowing.

5 months agoRemove unused exceptions.
Gary Gregory [Tue, 8 Feb 2022 23:12:46 +0000 (18:12 -0500)] 
Remove unused exceptions.

5 months agoBump commons.japicmp.version from 0.15.4 to 0.15.6.
Gary Gregory [Tue, 8 Feb 2022 23:10:45 +0000 (18:10 -0500)] 
Bump commons.japicmp.version from 0.15.4 to 0.15.6.

5 months agoBetter IllegalArgumentException message.
Gary Gregory [Tue, 8 Feb 2022 22:57:19 +0000 (17:57 -0500)] 
Better IllegalArgumentException message.

5 months agoFormat tweaks.
Gary Gregory [Tue, 8 Feb 2022 22:53:12 +0000 (17:53 -0500)] 
Format tweaks.

5 months agoCamel case parameter name.
Gary Gregory [Tue, 8 Feb 2022 22:16:17 +0000 (17:16 -0500)] 
Camel case parameter name.

5 months agoRemove unneeded cast.
Gary Gregory [Tue, 8 Feb 2022 15:31:56 +0000 (10:31 -0500)] 
Remove unneeded cast.

5 months agounpack200.NewAttributeBands incorrectly uses a long instead of an int
Gary Gregory [Tue, 8 Feb 2022 15:25:42 +0000 (10:25 -0500)] 
unpack200.NewAttributeBands incorrectly uses a long instead of an int
which also shows up as a CodeQL issue.