commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1750875 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java
Date Fri, 01 Jul 2016 04:58:18 GMT
Author: ggregory
Date: Fri Jul  1 04:58:18 2016
New Revision: 1750875

URL: http://svn.apache.org/viewvc?rev=1750875&view=rev
Log:
Do not need lvar.

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

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java?rev=1750875&r1=1750874&r2=1750875&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileObject.java
Fri Jul  1 04:58:18 2016
@@ -321,9 +321,7 @@ public class SftpFileObject extends Abst
             }
         }
         final boolean isOwner = checkIds ?  attrs.getUId() == getAbstractFileSystem().getUId()
: false;
-        final PosixPermissions permissions = new PosixPermissions(attrs.getPermissions(),
isOwner, isInGroup);
-
-        return permissions;
+        return new PosixPermissions(attrs.getPermissions(), isOwner, isInGroup);
     }
 
     @Override



Mime
View raw message