From 92a80e479b162a21b5f2fa78641b5ab4ff3be1f9 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 24 Jun 2023 11:02:06 -0400 Subject: [PATCH] Use Boolean.getBoolean() --- src/main/java/org/apache/commons/net/ftp/FTPClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/net/ftp/FTPClient.java b/src/main/java/org/apache/commons/net/ftp/FTPClient.java index e8ff80efe..9decbc592 100644 --- a/src/main/java/org/apache/commons/net/ftp/FTPClient.java +++ b/src/main/java/org/apache/commons/net/ftp/FTPClient.java @@ -562,7 +562,7 @@ static String parsePathname(final String reply) { /** Map of FEAT responses. If null, has not been initialized. */ private HashMap> featuresMap; - private boolean ipAddressFromPasvResponse = Boolean.parseBoolean(System.getProperty(FTPClient.FTP_IP_ADDRESS_FROM_PASV_RESPONSE)); + private boolean ipAddressFromPasvResponse = Boolean.getBoolean(FTPClient.FTP_IP_ADDRESS_FROM_PASV_RESPONSE); /** * Default FTPClient constructor. Creates a new FTPClient instance with the data connection mode set to ACTIVE_LOCAL_DATA_CONNECTION_MODE ,