Repository: commons-io
Updated Branches:
  refs/heads/master 872c74469 -> 156653ea5


IO-442: Javadoc contradictory for FileFilterUtils.ageFileFilter(cutoff) and the 
filter it constructs: AgeFileFilter(cutoff)

correct FileFilterUtils.ageFileFilter(cutoff) javadoc


Project: http://git-wip-us.apache.org/repos/asf/commons-io/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-io/commit/156653ea
Tree: http://git-wip-us.apache.org/repos/asf/commons-io/tree/156653ea
Diff: http://git-wip-us.apache.org/repos/asf/commons-io/diff/156653ea

Branch: refs/heads/master
Commit: 156653ea56fe215b97a263a770ea7094ff6adb84
Parents: 872c744
Author: pascalschumacher <pascalschumac...@gmx.net>
Authored: Sun Apr 23 20:44:33 2017 +0200
Committer: pascalschumacher <pascalschumac...@gmx.net>
Committed: Sun Apr 23 20:44:33 2017 +0200

----------------------------------------------------------------------
 src/changes/changes.xml                                 |  3 +++
 .../apache/commons/io/filefilter/FileFilterUtils.java   | 12 ++++++------
 2 files changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-io/blob/156653ea/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 1247b0a..bb4e37e 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -47,6 +47,9 @@ The <action> type attribute can be add,update,fix,remove.
   <body>
     <!-- The release date is the date RC is cut -->
     <release version="2.6" date="2017-MM-DD" description="New features and bug 
fixes.">
+      <action issue="IO-442" dev="pschumacher" type="fix" due-to="Simon 
Robinson">
+        Javadoc contradictory for FileFilterUtils.ageFileFilter(cutoff) and 
the filter it constructs: AgeFileFilter(cutoff)
+      </action>
       <action issue="IO-534" dev="sebb" type="fix">
         FileUtilTestCase.testForceDeleteDir() should not delete testDirectory 
parent
       </action>

http://git-wip-us.apache.org/repos/asf/commons-io/blob/156653ea/src/main/java/org/apache/commons/io/filefilter/FileFilterUtils.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/apache/commons/io/filefilter/FileFilterUtils.java 
b/src/main/java/org/apache/commons/io/filefilter/FileFilterUtils.java
index 431bf2a..0326a40 100644
--- a/src/main/java/org/apache/commons/io/filefilter/FileFilterUtils.java
+++ b/src/main/java/org/apache/commons/io/filefilter/FileFilterUtils.java
@@ -518,8 +518,8 @@ public class FileFilterUtils {
 
     //-----------------------------------------------------------------------
     /**
-     * Returns a filter that returns true if the file was last modified after
-     * the specified cutoff time.
+     * Returns a filter that returns true if the file was last modified before
+     * or at the specified cutoff time.
      *
      * @param cutoff  the time threshold
      * @return an appropriately configured age file filter
@@ -544,8 +544,8 @@ public class FileFilterUtils {
     }
 
     /**
-     * Returns a filter that returns true if the file was last modified after
-     * the specified cutoff date.
+     * Returns a filter that returns true if the file was last modified before
+     * or at the specified cutoff date.
      *
      * @param cutoffDate  the time threshold
      * @return an appropriately configured age file filter
@@ -570,8 +570,8 @@ public class FileFilterUtils {
     }
 
     /**
-     * Returns a filter that returns true if the file was last modified after
-     * the specified reference file.
+     * Returns a filter that returns true if the file was last modified before
+     * or at the same time as the specified reference file.
      *
      * @param cutoffReference  the file whose last modification
      *        time is used as the threshold age of the files

Reply via email to