From 0d5c061b1db2627361319135659841d4d0b47bb3 Mon Sep 17 00:00:00 2001 From: Manuel Trezza Date: Mon, 25 Nov 2019 03:51:59 +0100 Subject: [PATCH 1/2] added warning to update server URL docs --- parse/src/main/java/com/parse/Parse.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/parse/src/main/java/com/parse/Parse.java b/parse/src/main/java/com/parse/Parse.java index a404685df..a83501d20 100644 --- a/parse/src/main/java/com/parse/Parse.java +++ b/parse/src/main/java/com/parse/Parse.java @@ -196,8 +196,16 @@ public Void then(Task task) { //region Server URL /** - * Sets the server URL. This can be used to update the server URL after this client has been - * initialized, without having to {@link Parse#destroy()} this client. + * Sets the server URL. The local client cache is not cleared. + *

+ * This can be used to update the server URL after this client has been initialized, without + * having to {@link Parse#destroy()} this client. An example use case is server connection failover, where the + * clients connects to another URL if the server becomes unreachable at the current URL. + *

+ * Waring:
+ * The new server URL must point to a Parse Server that connects to the same database. + * Otherwise, issues may arise related to locally cached data or delayed methods such as + * {@link ParseObject#saveEventually()}. * @param server The server URL to set. */ public static void setServer(@NonNull String server) { From bdf82e16569a4743192f6eecf5bf55095619869a Mon Sep 17 00:00:00 2001 From: Manuel Trezza Date: Mon, 25 Nov 2019 03:57:41 +0100 Subject: [PATCH 2/2] fixed typo --- parse/src/main/java/com/parse/Parse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse/src/main/java/com/parse/Parse.java b/parse/src/main/java/com/parse/Parse.java index a83501d20..2b0005cff 100644 --- a/parse/src/main/java/com/parse/Parse.java +++ b/parse/src/main/java/com/parse/Parse.java @@ -202,7 +202,7 @@ public Void then(Task task) { * having to {@link Parse#destroy()} this client. An example use case is server connection failover, where the * clients connects to another URL if the server becomes unreachable at the current URL. *

- * Waring:
+ * Warning:
* The new server URL must point to a Parse Server that connects to the same database. * Otherwise, issues may arise related to locally cached data or delayed methods such as * {@link ParseObject#saveEventually()}.