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

commit 21eba7bf47d1b29205aa7d9b79e7d5b9599cf718
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Wed Jul 19 09:27:23 2023 -0400

    Better local names
---
 .../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 f55ea244..5124971a 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
@@ -49,13 +49,13 @@ public class DownloadListings extends FTPClient {
 
         new File(DOWNLOAD_DIR).mkdirs();
         final DownloadListings self = new DownloadListings();
-        final OutputStream os = new FileOutputStream(new File(DOWNLOAD_DIR, 
"session.log"));
-        self.addProtocolCommandListener(new PrintCommandListener(new 
PrintWriter(os), true));
+        final OutputStream outputStream = new FileOutputStream(new 
File(DOWNLOAD_DIR, "session.log"));
+        self.addProtocolCommandListener(new PrintCommandListener(new 
PrintWriter(outputStream), true));
 
-        final Reader is = new FileReader("mirrors.list");
-        final BufferedReader rdr = new BufferedReader(is);
+        final Reader reader = new FileReader("mirrors.list");
+        final BufferedReader bufReader = new BufferedReader(reader);
         String line;
-        while ((line = rdr.readLine()) != null) {
+        while ((line = bufReader.readLine()) != null) {
             if (line.startsWith("ftp")) {
                 final String[] parts = line.split("\\s+");
                 final String target = parts[2];
@@ -79,8 +79,8 @@ public class DownloadListings extends FTPClient {
                 }
             }
         }
-        os.close();
-        rdr.close();
+        outputStream.close();
+        bufReader.close();
     }
 
     private PrintCommandListener listener;

Reply via email to