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 b04dee85d6e04e63d308f027ae1fd5c7053fc4e4 Author: Gary Gregory <[email protected]> AuthorDate: Tue Jun 24 07:34:22 2025 -0400 Use an import instead of a FQCN --- src/main/java/org/apache/commons/net/ftp/FTPClient.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 f383fb01..6c840198 100644 --- a/src/main/java/org/apache/commons/net/ftp/FTPClient.java +++ b/src/main/java/org/apache/commons/net/ftp/FTPClient.java @@ -47,6 +47,7 @@ import java.util.Properties; import java.util.Random; import java.util.Set; import java.util.regex.Matcher; +import java.util.regex.Pattern; import org.apache.commons.io.IOUtils; import org.apache.commons.net.MalformedServerReplyException; @@ -461,10 +462,10 @@ public class FTPClient extends FTP implements Configurable { public static final int PASSIVE_REMOTE_DATA_CONNECTION_MODE = 3; /** Pattern for PASV mode responses. Groups: (n,n,n,n),(n),(n) */ - private static final java.util.regex.Pattern PARMS_PAT; + private static final Pattern PARMS_PAT; static { - PARMS_PAT = java.util.regex.Pattern.compile("(\\d{1,3},\\d{1,3},\\d{1,3},\\d{1,3}),(\\d{1,3}),(\\d{1,3})"); + PARMS_PAT = Pattern.compile("(\\d{1,3},\\d{1,3},\\d{1,3},\\d{1,3}),(\\d{1,3}),(\\d{1,3})"); } private static Properties getOverrideProperties() {
