You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/07/16 23:06:34 UTC
(commons-net) 04/04: Javadoc
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 d794583e5ca0f61f533931cc77f10d0a90f241bd
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Jul 16 19:06:25 2025 -0400
Javadoc
---
.../java/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java b/src/main/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java
index c30e81ea..b1ff4a62 100644
--- a/src/main/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java
+++ b/src/main/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java
@@ -109,8 +109,9 @@ public class UnixFTPEntryParser extends ConfigurableFTPFileEntryParserImpl {
+ "\\s" // separator
+ "(.*)"; // the rest (21)
- // if true, leading spaces are trimmed from file names
- // this was the case for the original implementation
+ /**
+ * Whether leading spaces are trimmed from file names this was the case for the original implementation.
+ */
final boolean trimLeadingSpaces; // package protected for access from test code
/**
@@ -136,7 +137,7 @@ public class UnixFTPEntryParser extends ConfigurableFTPFileEntryParserImpl {
}
/**
- * This constructor allows the creation of a UnixFTPEntryParser object with something other than the default configuration.
+ * Constructs a new instance with something other than the default configuration.
*
* @param config The {@link FTPClientConfig configuration} object used to configure this parser.
* @param trimLeadingSpaces if {@code true}, trim leading spaces from file names