Skip to content

[javadoc] Rename parameter of ProxyOutputStream.write(int)#740

Merged
garydgregory merged 1 commit intoapache:masterfrom
jglick:patch-1
Apr 15, 2025
Merged

[javadoc] Rename parameter of ProxyOutputStream.write(int)#740
garydgregory merged 1 commit intoapache:masterfrom
jglick:patch-1

Conversation

@jglick
Copy link
Copy Markdown
Contributor

@jglick jglick commented Apr 15, 2025

Very trivial, but I noticed that the parameter of this method was named idx, which would usually be construed as an abbreviation for index, which in this context would be presumed to be an index into a byte[]. But that is not what it is; it is a byte (typed as int for what I suppose are historical reasons). The supertypes OutputStream and FilterOutputStream name the parameter b, which seems more intuitive.

@garydgregory garydgregory merged commit ab21dfe into apache:master Apr 15, 2025
19 of 21 checks passed
@jglick jglick deleted the patch-1 branch April 15, 2025 19:54
@garydgregory
Copy link
Copy Markdown
Member

@jglick
Thank you for your PR 👍 Merged 🚀

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.

2 participants