Skip to content

Commit

Permalink
Use Boolean.getBoolean()
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jun 24, 2023
1 parent 582ee31 commit 92a80e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/apache/commons/net/ftp/FTPClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ static String parsePathname(final String reply) {
/** Map of FEAT responses. If null, has not been initialized. */
private HashMap<String, Set<String>> 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 <code> ACTIVE_LOCAL_DATA_CONNECTION_MODE </code>,
Expand Down

0 comments on commit 92a80e4

Please sign in to comment.