You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2012/10/29 14:49:45 UTC
svn commit: r1403292 -
/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystem.java
Author: ggregory
Date: Mon Oct 29 13:49:45 2012
New Revision: 1403292
URL: http://svn.apache.org/viewvc?rev=1403292&view=rev
Log:
Checktyle: construct must use '{}'s.
Modified:
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystem.java
Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystem.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystem.java?rev=1403292&r1=1403291&r2=1403292&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystem.java (original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystem.java Mon Oct 29 13:49:45 2012
@@ -241,14 +241,18 @@ public class SftpFileSystem
StringBuilder output = new StringBuilder();
int code = executeCommand("id -G", output);
if (code != 0)
+ {
throw new JSchException("Could not get the groups id of the current user (error code: " + code + ")");
+ }
// Retrieve the different groups
final String[] groups = output.toString().trim().split("\\s+");
int [] groupsIds = new int [groups.length];
for(int i = 0; i < groups.length; i++)
+ {
groupsIds[i] = Integer.parseInt(groups[i]);
+ }
this.groupsIds = groupsIds;
}