This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
The following commit(s) were added to refs/heads/master by this push:
new bd78f31 Extensions are never null, remove null-check.
bd78f31 is described below
commit bd78f314b2efe3167703b4f744ba989285fbd799
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Mar 2 09:39:43 2021 -0500
Extensions are never null, remove null-check.
---
.../src/main/java/org/apache/commons/vfs2/FileExtensionSelector.java | 3 ---
1 file changed, 3 deletions(-)
diff --git
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileExtensionSelector.java
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileExtensionSelector.java
index ca39b39..863e35b 100644
---
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileExtensionSelector.java
+++
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/FileExtensionSelector.java
@@ -70,9 +70,6 @@ public class FileExtensionSelector implements FileSelector {
*/
@Override
public boolean includeFile(final FileSelectInfo fileInfo) throws Exception
{
- if (this.extensions == null) {
- return false;
- }
for (final String extension : this.extensions) {
if
(fileInfo.getFile().getName().getExtension().equalsIgnoreCase(extension)) {
return true;