aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDorvaryn <ben@novoda.com>2015-09-03 14:43:34 +0100
committerDorvaryn <ben@novoda.com>2015-09-03 18:15:24 +0100
commit618343fd1bae998ac9ebfde37a56eb4f498a59d7 (patch)
treeb849628380292e11ca1280e0b01a94a1eef41c38
parentb9738875c049ed22a029b15180ed4ad117676f0a (diff)
downloadandroid_external_gson-618343fd1bae998ac9ebfde37a56eb4f498a59d7.tar.gz
android_external_gson-618343fd1bae998ac9ebfde37a56eb4f498a59d7.tar.bz2
android_external_gson-618343fd1bae998ac9ebfde37a56eb4f498a59d7.zip
Clarify the fact that the behaviour of getDelegateAdapter depends on registration order.
-rw-r--r--gson/src/main/java/com/google/gson/Gson.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/gson/src/main/java/com/google/gson/Gson.java b/gson/src/main/java/com/google/gson/Gson.java
index 9255261c..5f38baba 100644
--- a/gson/src/main/java/com/google/gson/Gson.java
+++ b/gson/src/main/java/com/google/gson/Gson.java
@@ -410,6 +410,10 @@ public final class Gson {
* System.out.println("Num JSON reads" + stats.numReads);
* System.out.println("Num JSON writes" + stats.numWrites);
* }</pre>
+ * Note that this call will skip all factories registered before {@code skipPast}. In case of
+ * multiple TypeAdapterFactories registered it is up to the caller of this function to insure
+ * that the order of registration does not prevent this method from reaching a factory they
+ * would expect to reply from this call.
* Note that since you can not override type adapter factories for String and Java primitive
* types, our stats factory will not count the number of String or primitives that will be
* read or written.