commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1349306 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
Date Tue, 12 Jun 2012 12:49:36 GMT
Author: ggregory
Date: Tue Jun 12 12:49:36 2012
New Revision: 1349306

URL: http://svn.apache.org/viewvc?rev=1349306&view=rev
Log:
Add missing Javadoc for org.apache.commons.io.FileUtils.checkDirectory(File)

Modified:
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java

Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java?rev=1349306&r1=1349305&r2=1349306&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java (original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java Tue Jun 12
12:49:36 2012
@@ -2521,11 +2521,16 @@ public class FileUtils {
         return size;
     }
 
+    /**
+     * Checks that the given {@code File} exists and is a directory.
+     * 
+     * @param directory The {@code File} to check.
+     * @throws IllegalArgumentException if the given {@code File} does not exist or is not
a directory.
+     */
     private static void checkDirectory(File directory) {
         if (!directory.exists()) {
             throw new IllegalArgumentException(directory + " does not exist");
         }
-
         if (!directory.isDirectory()) {
             throw new IllegalArgumentException(directory + " is not a directory");
         }



Mime
View raw message