Sarankumar18 opened a new pull request, #856: URL: https://github.com/apache/commons-io/pull/856
PeekableInputStream.peek() currently performs an exact match against the provided byte array, but the Javadoc could be read as a prefix / starts-with check. This PR clarifies the Javadoc to state that peek() requires an exact match and does not consume bytes from the stream. It also adds tests covering: - exact match returns true - prefix-only match returns false - peek() does not consume bytes Resolves [IO-855](https://issues.apache.org/jira/browse/IO-855) Checklist: - [x] Read the contribution guidelines for this project. - [x] Read the ASF Generative Tooling Guidance. - [x] Ran `mvn -Drat.skip=true -Dtest=PeekableInputStreamTest test` - [x] Added unit tests matching the documented behavior. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
