Skip to content

Commit 4181900

Browse files
committed
Add file location warning in comment and nit changes
1 parent fd7424f commit 4181900

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Parse/src/main/java/com/parse/GetDataStreamCallback.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,3 @@ public interface GetDataStreamCallback extends ParseCallback2<InputStream, Parse
3939
@Override
4040
public void done(InputStream input, ParseException e);
4141
}
42-
43-

Parse/src/main/java/com/parse/ParseFile.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,8 @@ public void getDataInBackground(GetDataCallback dataCallback) {
505505
* Synchronously gets the file pointer from cache if available or fetches its content from the
506506
* network. You probably want to use {@link #getFileInBackground()} instead unless you're already
507507
* in a background thread.
508+
* <strong>Note: </strong> The {@link File} location may change without notice and should not be
509+
* stored to be accessed later.
508510
*/
509511
public File getFile() throws ParseException {
510512
return ParseTaskUtils.wait(getFileInBackground());
@@ -513,6 +515,8 @@ public File getFile() throws ParseException {
513515
/**
514516
* Asynchronously gets the file pointer from cache if available or fetches its content from the
515517
* network. The {@code ProgressCallback} will be called periodically with progress updates.
518+
* <strong>Note: </strong> The {@link File} location may change without notice and should not be
519+
* stored to be accessed later.
516520
*
517521
* @param progressCallback
518522
* A {@code ProgressCallback} that is called periodically with progress updates.
@@ -540,6 +544,8 @@ public Task<File> then(Task<File> task) throws Exception {
540544
/**
541545
* Asynchronously gets the file pointer from cache if available or fetches its content from the
542546
* network.
547+
* <strong>Note: </strong> The {@link File} location may change without notice and should not be
548+
* stored to be accessed later.
543549
*
544550
* @return A Task that is resolved when the data has been fetched.
545551
*/
@@ -553,6 +559,8 @@ public Task<File> getFileInBackground() {
553559
* The {@code ProgressCallback} will be called periodically with progress updates.
554560
* The {@code ProgressCallback} is guaranteed to be called with 100 before the
555561
* {@code GetFileCallback} is called.
562+
* <strong>Note: </strong> The {@link File} location may change without notice and should not be
563+
* stored to be accessed later.
556564
*
557565
* @param fileCallback
558566
* A {@code GetFileCallback} that is called when the get completes.
@@ -567,6 +575,8 @@ public void getFileInBackground(GetFileCallback fileCallback,
567575
/**
568576
* Asynchronously gets the file pointer from cache if available or fetches its content from the
569577
* network. The {@code GetFileCallback} will be called when the get completes.
578+
* <strong>Note: </strong> The {@link File} location may change without notice and should not be
579+
* stored to be accessed later.
570580
*
571581
* @param fileCallback
572582
* A {@code GetFileCallback} that is called when the get completes.

0 commit comments

Comments
 (0)