Skip to content

Commit

Permalink
#8993: fix javadoc
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
  • Loading branch information
lorban committed Dec 5, 2022
1 parent ce409f2 commit b3473ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ static Chunk next(Chunk chunk)
/**
* <p>Returns a new {@code Chunk} whose {@code ByteBuffer} is a slice of the
* {@code ByteBuffer} of the source {@code Chunk} unless the source
* {@link #hasRemaining() has no remaining byte} in which case:
* {@link #hasRemaining() has no remaining byte} in which case:</p>
* <ul>
* <li>{@code this} is returned if it is an instance of {@link Error}</li>
* <li>{@link #EOF} is returned if {@link #isLast()} is {@code true}</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,13 @@ public void write(boolean last, ByteBuffer byteBuffer, Callback callback)
/**
* <p>Writes the given {@link ByteBuffer}, notifying the {@link Callback} when the
* write is complete.</p>
* <p>
* <p>The callback completes:
* <p>The callback completes:</p>
* <ul>
* <li>immediately with a failure when the written chunk is an instance of {@link Content.Chunk.Error}</li>
* <li>successfully when the {@link Content.Chunk} returned by {@link #read()} is released</li>
* <li>successfully just before the {@link Content.Chunk} is returned if the latter {@link Content.Chunk#hasRemaining() has no remaining byte}</li>
* </ul>
* </p>
*
* @param chunk the Content.Chunk to write
* @param callback the callback to notify when the write operation is complete
*/
Expand Down

0 comments on commit b3473ff

Please sign in to comment.