commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1395139 - in /commons/proper/io/trunk/src: changes/changes.xml main/java/org/apache/commons/io/FileUtils.java
Date Sat, 06 Oct 2012 18:12:06 GMT
Author: ggregory
Date: Sat Oct  6 18:12:06 2012
New Revision: 1395139

URL: http://svn.apache.org/viewvc?rev=1395139&view=rev
Log:
[IO-348] Missing information in IllegalArgumentException thrown by org.apache.commons.io.FileUtils#validateListFilesParameters.

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

Modified: commons/proper/io/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/changes/changes.xml?rev=1395139&r1=1395138&r2=1395139&view=diff
==============================================================================
--- commons/proper/io/trunk/src/changes/changes.xml (original)
+++ commons/proper/io/trunk/src/changes/changes.xml Sat Oct  6 18:12:06 2012
@@ -47,6 +47,9 @@ The <action> type attribute can be add,u
   <body>
     <!-- The release date is the date RC is cut -->
     <release version="2.5" date="201?-??-??" description="New features and bug fixes.">
+      <action issue="IO-348" dev="ggregory" type="add" due-to="plcstpierre">
+        Missing information in IllegalArgumentException thrown by org.apache.commons.io.FileUtils#validateListFilesParameters.
+      </action>            
       <action issue="IO-345" dev="ggregory" type="add" due-to="mkresse">
         Supply a hook method allowing Tailer actively determining stop condition.
       </action>            

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=1395139&r1=1395138&r2=1395139&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 Sat Oct  6
18:12:06 2012
@@ -542,7 +542,7 @@ public class FileUtils {
      */
     private static void validateListFilesParameters(File directory, IOFileFilter fileFilter)
{
         if (!directory.isDirectory()) {
-            throw new IllegalArgumentException("Parameter 'directory' is not a directory");
+            throw new IllegalArgumentException("Parameter 'directory' is not a directory:
" + directory);
         }
         if (fileFilter == null) {
             throw new NullPointerException("Parameter 'fileFilter' is null");



Mime
View raw message