Skip to content

Commit 27c68e3

Browse files
committed
Make immutable private field final. Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/net/branches/NET_2_0@963320 13f79535-47bb-0310-9956-ffa450edef68
1 parent fad92c0 commit 27c68e3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/org/apache/commons/net/ftp/FTPClient.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public class FTPClient extends FTP
270270
private int __dataConnectionMode, __dataTimeout;
271271
private int __passivePort;
272272
private String __passiveHost;
273-
private Random __random;
273+
private final Random __random;
274274
private int __activeMinPort, __activeMaxPort;
275275
private InetAddress __activeExternalHost;
276276
private int __fileType, __fileFormat, __fileStructure, __fileTransferMode;
@@ -1378,6 +1378,8 @@ public boolean completePendingCommand() throws IOException
13781378
* If the current file type is ASCII, line separators in the file are
13791379
* converted to the local representation.
13801380
* <p>
1381+
* Note: if you have used {@link #setRestartOffset(long)},
1382+
* the file data will start from the selected offset.
13811383
* @param remote The name of the remote file.
13821384
* @param local The local OutputStream to which to write the file.
13831385
* @return True if successfully completed, false if not.
@@ -1439,6 +1441,9 @@ public boolean retrieveFile(String remote, OutputStream local)
14391441
* {@link #completePendingCommand completePendingCommand } and
14401442
* check its return value to verify success.
14411443
* <p>
1444+
* Note: if you have used {@link #setRestartOffset(long)},
1445+
* the file data will start from the selected offset.
1446+
*
14421447
* @param remote The name of the remote file.
14431448
* @return An InputStream from which the remote file can be read. If
14441449
* the data connection cannot be opened (e.g., the file does not

0 commit comments

Comments
 (0)