Skip to content

Commit 3fb689a

Browse files
author
Gary Gregory
committed
Fix Checkstyle issues.
1 parent e3afa27 commit 3fb689a

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/main/java/org/apache/commons/io/FileUtils.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
import org.apache.commons.io.file.PathUtils;
5858
import org.apache.commons.io.filefilter.DirectoryFileFilter;
5959
import org.apache.commons.io.filefilter.FalseFileFilter;
60-
import org.apache.commons.io.filefilter.FileFilterUtils;
6160
import org.apache.commons.io.filefilter.IOFileFilter;
6261
import org.apache.commons.io.filefilter.SuffixFileFilter;
6362
import org.apache.commons.io.filefilter.TrueFileFilter;

src/main/java/org/apache/commons/io/filefilter/RegexFileFilter.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
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$");
@@ -43,6 +44,7 @@
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

Comments
 (0)