Skip to content

Auto-port 5.0: Codec-compression: Add Bzip2Decompressor - #17158

Merged
chrisvest merged 1 commit into
5.0from
auto-port-pr-17145-to-5.0
Jul 28, 2026
Merged

chrisvest merged 1 commit into
5.0from
auto-port-pr-17145-to-5.0

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #17145 to 5.0
Cherry-picked commit: 5b9ad3a


Motivation:

The decompressor migration tracked in #16743 is being split out of #15667 into smaller, independently reviewable pieces. The core Decompressor API and the first implementation landed in #16745, and bzip2 is one of the remaining per-format decompressor implementations.

Modification:

  • Add Bzip2Decompressor, adapted from the existing Bzip2Decoder state machine to the new pull-style Decompressor API.
  • Add Bzip2DecompressorTest, using the shared AbstractDecompressorTest contract with Bzip2Encoder.

Result:

Bzip2 can now be decompressed through the new Decompressor API.

Verified with:

  • ./mvnw -pl codec-compression -am verify

Part of #16743.

Motivation:

The decompressor migration tracked in #16743 is being split out of
#15667 into smaller, independently reviewable pieces. The core
`Decompressor` API and the first implementation landed in #16745, and
bzip2 is one of the remaining per-format decompressor implementations.

Modification:

- Add `Bzip2Decompressor`, adapted from the existing `Bzip2Decoder`
state machine to the new pull-style `Decompressor` API.
- Add `Bzip2DecompressorTest`, using the shared
`AbstractDecompressorTest` contract with `Bzip2Encoder`.

Result:

Bzip2 can now be decompressed through the new `Decompressor` API.

Verified with:

- `./mvnw -pl codec-compression -am verify`

Part of #16743.

---------

Co-authored-by: multicode <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
(cherry picked from commit 5b9ad3a)
@testlens-app

testlens-app Bot commented Jul 27, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: fb11fca
▶️ Tests: 40170 executed
⚪️ Checks: 12/12 completed


Learn more about TestLens at testlens.app.

@chrisvest
chrisvest merged commit 48c2831 into 5.0 Jul 28, 2026
12 of 13 checks passed
@chrisvest
chrisvest deleted the auto-port-pr-17145-to-5.0 branch July 28, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants