Skip to content

Fix DeflateStream.Flush() summary: method is not a no-op when compressing#12756

Open
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-deflatestream-flush-functionality
Open

Fix DeflateStream.Flush() summary: method is not a no-op when compressing#12756
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-deflatestream-flush-functionality

Conversation

Copilot AI commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

The Flush() summary incorrectly stated "The current implementation of this method has no functionality." — directly contradicting the .NET 10 implementation, which calls FlushBuffers() when in CompressionMode.Compress.

Changes

  • xml/System.IO.Compression/DeflateStream.xml
    • Updated <summary> to: "Flushes the internal buffer to the underlying stream."
    • Rewrote <remarks> to explicitly distinguish behavior by mode: flushes when compressing, no-op when decompressing.

Copilot AI changed the title [WIP] Fix documentation for DeflateStream.Flush implementation in .NET 10 Fix DeflateStream.Flush() summary: method is not a no-op when compressing Jun 17, 2026
Copilot AI requested a review from gewarren June 17, 2026 20:03
@gewarren gewarren marked this pull request as ready for review June 17, 2026 20:12
@gewarren gewarren requested a review from a team as a code owner June 17, 2026 20:12
Copilot AI review requested due to automatic review settings June 17, 2026 20:12
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-system-io-compression

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the API reference documentation for System.IO.Compression.DeflateStream.Flush() so it no longer contradicts the .NET 10+ implementation behavior.

Changes:

  • Replaces the Flush() <summary> text that previously claimed the method had no functionality.
  • Updates the Flush() <remarks> to distinguish behavior between CompressionMode.Compress (flushes) and CompressionMode.Decompress (no-op).

<Parameters />
<Docs>
<summary>The current implementation of this method has no functionality.</summary>
<summary>Flushes the internal buffer to the underlying stream.</summary>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants