commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1403388 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
Date Mon, 29 Oct 2012 15:51:45 GMT
Author: ggregory
Date: Mon Oct 29 15:51:45 2012
New Revision: 1403388

URL: http://svn.apache.org/viewvc?rev=1403388&view=rev
Log:
Flip if condition for clarity: if (expr == null) return null else ...

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java?rev=1403388&r1=1403387&r2=1403388&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
Mon Oct 29 15:51:45 2012
@@ -1466,7 +1466,7 @@ public abstract class AbstractFileObject
     public FileObject[] findFiles(final FileSelector selector) throws FileSystemException
     {
         final List<FileObject> list = this.listFiles(selector);
-        return list != null ? list.toArray(new FileObject[list.size()]) : null;
+        return list == null ? null : list.toArray(new FileObject[list.size()]);
     }
 
     /**



Mime
View raw message