This is an automated email from the ASF dual-hosted git repository.

garydgregory 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 c555c9bbf Flip null test
c555c9bbf is described below

commit c555c9bbf53026cfdf2079aebc20d7edc58897e3
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jul 5 10:01:08 2026 -0400

    Flip null test
---
 .../java/org/apache/commons/vfs2/provider/hdfs/HdfsFileObject.java    | 4 ++--
 .../java/org/apache/commons/vfs2/provider/hdfs/HdfsFileSystem.java    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/commons-vfs2-hdfs/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileObject.java
 
b/commons-vfs2-hdfs/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileObject.java
index 19d00475a..430f3dd50 100644
--- 
a/commons-vfs2-hdfs/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileObject.java
+++ 
b/commons-vfs2-hdfs/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileObject.java
@@ -117,7 +117,7 @@ public class HdfsFileObject extends 
AbstractFileObject<HdfsFileSystem> {
      */
     @Override
     protected Map<String, Object> doGetAttributes() throws Exception {
-        if (null == stat) {
+        if (stat == null) {
             return super.doGetAttributes();
         }
         final Map<String, Object> attrs = new HashMap<>();
@@ -190,7 +190,7 @@ public class HdfsFileObject extends 
AbstractFileObject<HdfsFileSystem> {
     protected FileType doGetType() throws Exception {
         try {
             doAttach();
-            if (null == stat) {
+            if (stat == null) {
                 return FileType.IMAGINARY;
             }
             if (stat.isDirectory()) {
diff --git 
a/commons-vfs2-hdfs/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileSystem.java
 
b/commons-vfs2-hdfs/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileSystem.java
index 14055e3de..379ad657e 100644
--- 
a/commons-vfs2-hdfs/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileSystem.java
+++ 
b/commons-vfs2-hdfs/src/main/java/org/apache/commons/vfs2/provider/hdfs/HdfsFileSystem.java
@@ -150,7 +150,7 @@ public class HdfsFileSystem extends AbstractFileSystem {
 
         final boolean useCache = getFileSystemManager().getFilesCache() != 
null;
         FileObject fileObject = useCache ? getFileFromCache(name) : null;
-        if (null == fileObject) {
+        if (fileObject == null) {
             String path;
             try {
                 path = URLDecoder.decode(name.getPath(), 
StandardCharsets.UTF_8.name());

Reply via email to