This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
commit d29a7b709e978f361862804a4b9532929e15b8c7 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Dec 10 16:23:47 2024 -0500 Add missing Javdoc --- src/main/java/org/apache/commons/io/ByteBuffers.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/org/apache/commons/io/ByteBuffers.java b/src/main/java/org/apache/commons/io/ByteBuffers.java index 8992d3256..6c557f313 100644 --- a/src/main/java/org/apache/commons/io/ByteBuffers.java +++ b/src/main/java/org/apache/commons/io/ByteBuffers.java @@ -43,6 +43,12 @@ public class ByteBuffers { return littleEndian(ByteBuffer.wrap(array)); } + /** + * Sets the give buffer to little-endian. + * + * @param allocate The buffer to set to little-endian. + * @return the given buffer. + */ public static ByteBuffer littleEndian(final ByteBuffer allocate) { return allocate.order(ByteOrder.LITTLE_ENDIAN); } @@ -62,4 +68,8 @@ public class ByteBuffers { return littleEndian(ByteBuffer.allocate(capacity)); } + private ByteBuffers() { + // empty, no instance. + } + }