You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2022/03/28 19:50:57 UTC
[GitHub] [commons-io] garydgregory commented on a change in pull request #339: Add missing javadoc for exceptions thrown for invalid arguments
garydgregory commented on a change in pull request #339:
URL: https://github.com/apache/commons-io/pull/339#discussion_r836791793
##########
File path: src/main/java/org/apache/commons/io/FileUtils.java
##########
@@ -3119,8 +3121,9 @@ private static int toMaxDepth(final boolean recursive) {
* </p>
*
* @param file the File to touch.
- * @throws IOException if an I/O problem occurs.
- * @throws IOException if setting the last-modified time failed.
+ * @throws NullPointerException if the parameter is {@code null}
+ * @throws IOException if an I/O problem occurs.
+ * @throws IOException if setting the last-modified time failed.
Review comment:
Listing each exception type once is enough IMO.
--
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: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org