3333 * <h2>Using Classic IO</h2>
3434 * <p>
3535 * e.g.
36+ *
3637 * <pre>
3738 * File dir = new File(".");
3839 * FileFilter fileFilter = new RegexFileFilter("^.*[tT]est(-\\d+)?\\.java$");
4344 * </pre>
4445 *
4546 * <h2>Using NIO</h2>
47+ *
4648 * <pre>
4749 * final Path dir = Paths.get(".");
4850 * final AccumulatorPathVisitor visitor = AccumulatorPathVisitor.withLongCounters(new RegexFileFilter("^.*[tT]est(-\\d+)?\\.java$"));
@@ -115,7 +117,7 @@ public RegexFileFilter(final String pattern, final int flags) {
115117 * Construct a new regular expression filter with the specified flags case sensitivity.
116118 *
117119 * @param pattern regular string expression to match
118- * @param caseSensitivity how to handle case sensitivity, null means case-sensitive
120+ * @param caseSensitivity how to handle case sensitivity, null means case-sensitive
119121 * @throws IllegalArgumentException if the pattern is null
120122 */
121123 public RegexFileFilter (final String pattern , final IOCase caseSensitivity ) {
@@ -132,8 +134,8 @@ public RegexFileFilter(final String pattern, final IOCase caseSensitivity) {
132134 /**
133135 * Checks to see if the file name matches one of the regular expressions.
134136 *
135- * @param dir the file directory (ignored)
136- * @param name the file name
137+ * @param dir the file directory (ignored)
138+ * @param name the file name
137139 * @return true if the file name matches one of the regular expressions
138140 */
139141 @ Override
@@ -143,9 +145,9 @@ public boolean accept(final File dir, final String name) {
143145
144146 /**
145147 * Checks to see if the file name matches one of the regular expressions.
146- * @param dir the file directory (ignored)
147- * @param name the file name
148- *
148+ *
149+ * @param path the path
150+ * @param attributes the path attributes
149151 * @return true if the file name matches one of the regular expressions
150152 */
151153 @ Override
0 commit comments