@@ -94,7 +94,6 @@ protected void onClose() throws IOException {
9494 } finally {
9595 getAbstractFileSystem ().putClient (client );
9696 }
97-
9897 if (!ok ) {
9998 throw new FileSystemException ("vfs.provider.ftp/finish-get.error" , getName ());
10099 }
@@ -122,17 +121,14 @@ protected void onClose() throws IOException {
122121 } finally {
123122 getAbstractFileSystem ().putClient (client );
124123 }
125-
126124 if (!ok ) {
127125 throw new FileSystemException ("vfs.provider.ftp/finish-put.error" , getName ());
128126 }
129127 }
130128 }
131129
132130 private static final long DEFAULT_TIMESTAMP = 0L ;
133- private static final Map <String , FTPFile > EMPTY_FTP_FILE_MAP = Collections
134- .unmodifiableMap (new TreeMap <>());
135-
131+ private static final Map <String , FTPFile > EMPTY_FTP_FILE_MAP = Collections .unmodifiableMap (new TreeMap <>());
136132 private static final FTPFile UNKNOWN = new FTPFile ();
137133
138134 private static final Log log = LogFactory .getLog (FtpFileObject .class );
@@ -190,7 +186,6 @@ protected void doCreateFolder() throws Exception {
190186 } finally {
191187 getAbstractFileSystem ().putClient (client );
192188 }
193-
194189 if (!ok ) {
195190 throw new FileSystemException ("vfs.provider.ftp/create-folder.error" , getName ());
196191 }
@@ -214,7 +209,6 @@ protected void doDelete() throws Exception {
214209 } finally {
215210 getAbstractFileSystem ().putClient (ftpClient );
216211 }
217-
218212 if (!ok ) {
219213 throw new FileSystemException ("vfs.provider.ftp/delete-file.error" , getName ());
220214 }
@@ -243,26 +237,22 @@ private void doGetChildren() throws IOException {
243237 if (childMap != null ) {
244238 return ;
245239 }
246-
247240 final FtpClient client = getAbstractFileSystem ().getClient ();
248241 try {
249242 final String path = ftpFile != null && ftpFile .isSymbolicLink ()
250- ? getFileSystem ().getFileSystemManager ().resolveName (getParent ().getName (), ftpFile .getLink ())
251- .getPath ()
243+ ? getFileSystem ().getFileSystemManager ().resolveName (getParent ().getName (), ftpFile .getLink ()).getPath ()
252244 : relPath ;
253245 final FTPFile [] tmpChildren = client .listFiles (path );
254246 if (ArrayUtils .isEmpty (tmpChildren )) {
255247 childMap = EMPTY_FTP_FILE_MAP ;
256248 } else {
257249 childMap = new TreeMap <>();
258-
259250 // Remove '.' and '..' elements
260251 for (int i = 0 ; i < tmpChildren .length ; i ++) {
261252 final FTPFile child = tmpChildren [i ];
262253 if (child == null ) {
263254 if (log .isDebugEnabled ()) {
264- log .debug (Messages .getString ("vfs.provider.ftp/invalid-directory-entry.debug" ,
265- Integer .valueOf (i ), relPath ));
255+ log .debug (Messages .getString ("vfs.provider.ftp/invalid-directory-entry.debug" , Integer .valueOf (i ), relPath ));
266256 }
267257 continue ;
268258 }
@@ -503,7 +493,6 @@ public FileObject[] getChildren() throws FileSystemException {
503493 } catch (final Exception ex ) {
504494 throw new FileNotFolderException (getName (), ex );
505495 }
506-
507496 try {
508497 /*
509498 * Wrap our parent implementation, noting that we're refreshing so that we don't refresh() ourselves and
0 commit comments