Skip to content

Commit

Permalink
Merge pull request #322 from dmlloyd/javadoc-problems
Browse files Browse the repository at this point in the history
Fix Javadoc problems
  • Loading branch information
dmlloyd authored Jul 1, 2024
2 parents 1cc4d06 + 2fbbca2 commit 01f5e20
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public final class EmptyDirectoryStream<T> implements DirectoryStream<T> {
private EmptyDirectoryStream() {
}

/**
* {@return the singleton instance}
*/
@SuppressWarnings("unchecked")
public static <T> EmptyDirectoryStream<T> instance() {
return (EmptyDirectoryStream<T>) INSTANCE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public final class MemoryResource extends Resource {
* Accessing the resource will not affect the buffer's position or limit.
* Modifying the buffer's position or limit will not affect the contents of the resource.
*
* @param buffer the byte buffer containing the resource data (must not be {@code null})
* @param pathName the resource path name (must not be {@code null})
* @param data the byte buffer containing the resource data (must not be {@code null})
*/
public MemoryResource(final String pathName, final ByteBuffer data) {
super(pathName);
Expand All @@ -44,8 +44,8 @@ public MemoryResource(final String pathName, final ByteBuffer data) {
* Construct a new instance for a byte array.
* The byte array is not copied.
*
* @param bytes the byte array (must not be {@code null})
* @param pathName the resource path name (must not be {@code null})
* @param data the byte array (must not be {@code null})
*/
public MemoryResource(final String pathName, final byte[] data) {
this(pathName, ByteBuffer.wrap(data));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public long copyTo(OutputStream destination) throws IOException {
* in this case the content and state of the destination are undefined.
* The destination channel is not closed.
*
* @param destination the destination channel (must not be {@code null} and must not be non-blocking)
* @param channel the destination channel (must not be {@code null} and must not be non-blocking)
* @return the number of bytes copied
* @throws IOException if the copy fails
*/
Expand Down

0 comments on commit 01f5e20

Please sign in to comment.