Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve javadoc to fix #11720 #11731

Merged
merged 2 commits into from
May 3, 2024
Merged

Conversation

gregw
Copy link
Contributor

@gregw gregw commented May 1, 2024

Fix #11720 by improving the javadoc.

Fix #11720 by improving the javadoc.
janbartel
janbartel previously approved these changes May 2, 2024
Copy link
Contributor

@janbartel janbartel left a comment

Choose a reason for hiding this comment

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

Minor niggles.

*
* @param source the source to copy from
* @param sink the sink to copy to
* @param callback the callback to notify when the copy is complete
* @see #copy(Source, Sink, Chunk.Processor, Callback) to allows processing of individual {@link Chunk}s, including
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @see #copy(Source, Sink, Chunk.Processor, Callback) to allows processing of individual {@link Chunk}s, including
* @see #copy(Source, Sink, Chunk.Processor, Callback) to allow processing of individual {@link Chunk}s, including

* {@link Callback#succeeded() Succeeding} this callback will allow the processing of subsequent chunks.
* {@link Callback#failed(Throwable) Failing} this callback will fail the processing of all chunks.
* @return {@code True} if the chunk will be processed asynchronously and the callback will be called (or may have already been called),
* {@code false} otherwise, in which case subsequent chunks may be processed and the passed callback ignored.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* {@code false} otherwise, in which case subsequent chunks may be processed and the passed callback ignored.
* {@code False} otherwise, in which case subsequent chunks may be processed and the passed callback ignored.

Or alternatively make both line 910 aand 911 lowercase

Copy link
Contributor

Choose a reason for hiding this comment

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

My preference is both lower case.

sbordet
sbordet previously approved these changes May 2, 2024
Copy link
Contributor

@sbordet sbordet left a comment

Choose a reason for hiding this comment

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

LGTM with same niggle as @janbartel.

* {@link Callback#succeeded() Succeeding} this callback will allow the processing of subsequent chunks.
* {@link Callback#failed(Throwable) Failing} this callback will fail the processing of all chunks.
* @return {@code True} if the chunk will be processed asynchronously and the callback will be called (or may have already been called),
* {@code false} otherwise, in which case subsequent chunks may be processed and the passed callback ignored.
Copy link
Contributor

Choose a reason for hiding this comment

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

My preference is both lower case.

@joakime joakime self-requested a review May 3, 2024 12:48
@joakime joakime dismissed stale reviews from sbordet and janbartel via 4d1b527 May 3, 2024 12:51
@joakime joakime merged commit 8e456c4 into jetty-12.0.x May 3, 2024
2 of 4 checks passed
@joakime joakime deleted the fix/jetty-12.0.x/11720/ContentCopy branch May 3, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Wrong documentation or behavior of Content.copy method
4 participants