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 66032354 Don't use deprecated code
66032354 is described below

commit 66032354bd8a9ccfbcaf0356e696552c31654905
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Nov 12 12:57:13 2023 -0500

    Don't use deprecated code
---
 src/test/java/org/apache/commons/net/ftp/AbstractFtpsTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/net/ftp/AbstractFtpsTest.java 
b/src/test/java/org/apache/commons/net/ftp/AbstractFtpsTest.java
index 3eab9f68..f8cd66f5 100644
--- a/src/test/java/org/apache/commons/net/ftp/AbstractFtpsTest.java
+++ b/src/test/java/org/apache/commons/net/ftp/AbstractFtpsTest.java
@@ -202,8 +202,8 @@ public abstract class AbstractFtpsTest {
         try {
             // Do it twice.
             // Just testing that we are not getting an SSL error (the file 
MUST be present).
-            assertTrue(pathname, client.retrieveFile(pathname, 
NullOutputStream.NULL_OUTPUT_STREAM));
-            assertTrue(pathname, client.retrieveFile(pathname, 
NullOutputStream.NULL_OUTPUT_STREAM));
+            assertTrue(pathname, client.retrieveFile(pathname, 
NullOutputStream.INSTANCE));
+            assertTrue(pathname, client.retrieveFile(pathname, 
NullOutputStream.INSTANCE));
         } finally {
             client.disconnect();
         }

Reply via email to