[dna-commits] DNA SVN: r434 - trunk/dna-common/src/main/java/org/jboss/dna/common/util.

dna-commits at lists.jboss.org dna-commits at lists.jboss.org
Fri Aug 15 19:09:52 EDT 2008


Author: rhauch
Date: 2008-08-15 19:09:52 -0400 (Fri, 15 Aug 2008)
New Revision: 434

Modified:
   trunk/dna-common/src/main/java/org/jboss/dna/common/util/FileUtil.java
Log:
Added to the JavaDoc that the method throws an IllegalArgumentException if the parameter is null, empty or blank.

Modified: trunk/dna-common/src/main/java/org/jboss/dna/common/util/FileUtil.java
===================================================================
--- trunk/dna-common/src/main/java/org/jboss/dna/common/util/FileUtil.java	2008-08-15 23:08:17 UTC (rev 433)
+++ trunk/dna-common/src/main/java/org/jboss/dna/common/util/FileUtil.java	2008-08-15 23:09:52 UTC (rev 434)
@@ -65,9 +65,10 @@
     /**
      * Utility to convert {@link File} to {@link URL}.
      * 
-     * @param filePath - the path of the file.
+     * @param filePath the path of the file
      * @return the {@link URL} representation of the file.
      * @throws MalformedURLException
+     * @throws IllegalArgumentException if the file path is null, empty or blank
      */
     public static URL convertFileToURL( String filePath ) throws MalformedURLException {
         ArgCheck.isNotEmpty(filePath, "filePath");




More information about the dna-commits mailing list