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 759b4a1e251c5bd87a4d41ec0b9259df4092c10d
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Jun 24 07:37:41 2025 -0400

    Initialize in declaration
---
 src/main/java/org/apache/commons/net/ftp/FTPClient.java | 6 +-----
 1 file changed, 1 insertion(+), 5 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 6c840198..ba33a023 100644
--- a/src/main/java/org/apache/commons/net/ftp/FTPClient.java
+++ b/src/main/java/org/apache/commons/net/ftp/FTPClient.java
@@ -462,11 +462,7 @@ 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 Pattern PARMS_PAT;
-
-    static {
-        PARMS_PAT = 
Pattern.compile("(\\d{1,3},\\d{1,3},\\d{1,3},\\d{1,3}),(\\d{1,3}),(\\d{1,3})");
-    }
+    private static final Pattern 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() {
         return PropertiesSingleton.PROPERTIES;

Reply via email to