rproserpio commented on PR #609: URL: https://github.com/apache/commons-io/pull/609#issuecomment-2038430046
Yes, that sounds like the better solution. The only observable difference from before 2.16.0 should be in `isThresholdExceeded`, where a count of zero bytes and what was a negative threshold now returns false. But that makes sense. For the use case I was looking at (commons-fileupload) this solution is even better. I've reverted the other changes in the class, cleaned up a test and added a phrase in the constructor doc. I've used a ternary operator instead of a Math.max for the check, I hope it fits the conventions. Thank you for your help -- 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]
