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 2020/12/17 15:51:48 UTC
[commons-net] branch master updated: Formatting.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git
The following commit(s) were added to refs/heads/master by this push:
new 9e2597f Formatting.
9e2597f is described below
commit 9e2597f95872fa9b085ffdae10381afd6b228df5
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 17 10:51:43 2020 -0500
Formatting.
---
.../apache/commons/net/ftp/parser/DownloadListings.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/test/java/org/apache/commons/net/ftp/parser/DownloadListings.java b/src/test/java/org/apache/commons/net/ftp/parser/DownloadListings.java
index 93078ce..91a3404 100644
--- a/src/test/java/org/apache/commons/net/ftp/parser/DownloadListings.java
+++ b/src/test/java/org/apache/commons/net/ftp/parser/DownloadListings.java
@@ -102,20 +102,20 @@ public class DownloadListings extends FTPClient {
final Reader is = new FileReader("mirrors.list");
final BufferedReader rdr = new BufferedReader(is);
String line;
- while((line=rdr.readLine()) != null){
- if (line.startsWith("ftp")){
- final String []parts = line.split("\\s+");
+ while ((line = rdr.readLine()) != null) {
+ if (line.startsWith("ftp")) {
+ final String[] parts = line.split("\\s+");
final String target = parts[2];
host = target.substring("ftp://".length());
final int slash = host.indexOf('/');
path = host.substring(slash);
- host = host.substring(0,slash);
- System.out.println(host+ " "+path);
+ host = host.substring(0, slash);
+ System.out.println(host + " " + path);
if (self.open(host, port)) {
try {
self.info();
- self.download(path, FTPCmd.LIST, new File(DOWNLOAD_DIR, host+"_list.txt"));
- self.download(path, FTPCmd.MLSD, new File(DOWNLOAD_DIR, host+"_mlsd.txt"));
+ self.download(path, FTPCmd.LIST, new File(DOWNLOAD_DIR, host + "_list.txt"));
+ self.download(path, FTPCmd.MLSD, new File(DOWNLOAD_DIR, host + "_mlsd.txt"));
} catch (final Exception e) {
e.printStackTrace();
} finally {