Javadoc contradictory for FileFilterUtils.ageFileFilter(cutoff) and the filter it constructs: AgeFileFilter(cutoff)
correct FileFilterUtils.ageFileFilter(cutoff) javadoc
MODIFY
src/changes/changes.xml
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>

MODIFY
src/main/java/org/apache/commons/io/filefilter/FileFilterUtils.java
src/main/java/org/apache/commons/io/filefilter/FileFilterUtils.java
@@ -518,8 +518,8 @@ public static IOFileFilter asFileFilter(final FilenameFilter filter) {
//-----------------------------------------------------------------------
/**
- * 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 static IOFileFilter ageFileFilter(final long cutoff, final boolean accept
}
/**
- * 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 static IOFileFilter ageFileFilter(final Date cutoffDate, final boolean ac
}
/**
- * 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

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

correct FileFilterUtils.ageFileFilter(cutoff) javadoc