smarkwal opened a new pull request, #509: URL: https://github.com/apache/commons-io/pull/509
The test in this PR uses `FileChannels.contentEquals` to compare the content of two files. Both files have the same size of 1027 bytes. While the content of file 1 starts with "ABC", the content of file 2 starts with "XYZ". Both files then contain additional identical 1024 bytes (1024 x character "x"). The two files should be considered having different content. If `FileChannels.contentEquals` is invoked with a buffer size of 1024 bytes, it will return `true` (content is equal) instead of the expected `false` (content is different). If calling the method with a buffer size of 1023 bytes (just 1 byte less), then the method will return the correct result `false`. -- 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]
