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 9c6a84ea6cc7c50e07dff576d6bdb9da12364dc2
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Jul 1 18:04:19 2025 -0400

    Comments
---
 src/main/java/org/apache/commons/io/input/BOMInputStream.java | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/main/java/org/apache/commons/io/input/BOMInputStream.java 
b/src/main/java/org/apache/commons/io/input/BOMInputStream.java
index e7b6c3c47..47c7e0604 100644
--- a/src/main/java/org/apache/commons/io/input/BOMInputStream.java
+++ b/src/main/java/org/apache/commons/io/input/BOMInputStream.java
@@ -484,13 +484,11 @@ private ByteOrderMark readBom() throws IOException {
     }
 
     /**
-     * This method reads and either preserves or skips the first bytes in the 
stream. It behaves like the single-byte
-     * {@code read()} method, either returning a valid byte or -1 to indicate 
that the initial bytes have been
-     * processed already.
+     * Reads and either preserves or skips the first bytes in the stream. This 
method behaves like the single-byte {@code read()} method, either returning a
+     * valid byte or -1 to indicate that the initial bytes have been processed 
already.
      *
-     * @return the byte read (excluding BOM) or -1 if the end of stream
-     * @throws IOException
-     *             if an I/O error occurs
+     * @return the byte read (excluding BOM) or -1 if at the end of first 
bytes.
+     * @throws IOException if an I/O error occurs
      */
     private int readFirstBytes() throws IOException {
         getBOM();

Reply via email to