From 3244c54ebea34dff6b1d0f37da19bc469ed52614 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 19 Oct 2023 08:24:15 -0400 Subject: [PATCH] Camel-case internal names --- .../commons/io/filefilter/DelegateFileFilter.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/apache/commons/io/filefilter/DelegateFileFilter.java b/src/main/java/org/apache/commons/io/filefilter/DelegateFileFilter.java index 14c99566ba0..8c9cd7ddf1b 100644 --- a/src/main/java/org/apache/commons/io/filefilter/DelegateFileFilter.java +++ b/src/main/java/org/apache/commons/io/filefilter/DelegateFileFilter.java @@ -39,7 +39,7 @@ public class DelegateFileFilter extends AbstractFileFilter implements Serializab /** The File filter */ private final FileFilter fileFilter; /** The Filename filter */ - private final FilenameFilter filenameFilter; + private final FilenameFilter fileNameFilter; /** * Constructs a delegate file filter around an existing FileFilter. @@ -49,7 +49,7 @@ public class DelegateFileFilter extends AbstractFileFilter implements Serializab public DelegateFileFilter(final FileFilter fileFilter) { Objects.requireNonNull(fileFilter, "filter"); this.fileFilter = fileFilter; - this.filenameFilter = null; + this.fileNameFilter = null; } /** @@ -59,7 +59,7 @@ public DelegateFileFilter(final FileFilter fileFilter) { */ public DelegateFileFilter(final FilenameFilter filenameFilter) { Objects.requireNonNull(filenameFilter, "filter"); - this.filenameFilter = filenameFilter; + this.fileNameFilter = filenameFilter; this.fileFilter = null; } @@ -86,8 +86,8 @@ public boolean accept(final File file) { */ @Override public boolean accept(final File dir, final String name) { - if (filenameFilter != null) { - return filenameFilter.accept(dir, name); + if (fileNameFilter != null) { + return fileNameFilter.accept(dir, name); } return super.accept(dir, name); } @@ -99,7 +99,7 @@ public boolean accept(final File dir, final String name) { */ @Override public String toString() { - final String delegate = fileFilter != null ? fileFilter.toString() : filenameFilter.toString(); + final String delegate = fileFilter != null ? fileFilter.toString() : fileNameFilter.toString(); return super.toString() + "(" + delegate + ")"; }