ArdenL-Liu commented on code in PR #374:
URL: https://github.com/apache/commons-io/pull/374#discussion_r956844679
##########
src/main/java/org/apache/commons/io/IOUtils.java:
##########
@@ -346,6 +346,7 @@ public static byte[] byteArray() {
*
* @param size array size.
* @return a new byte array of the given size.
+ * @throws NegativeArraySizeException if the size is negative.
Review Comment:
As yours, this is why I want to add throws NegativeArraySizeException tag to
this method, In fact, in order to help users to use and understand these
methods, I think we should add it to the doc of all methods like it.
--
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]