diff --git a/gson/src/main/java/com/google/gson/Gson.java b/gson/src/main/java/com/google/gson/Gson.java index f8b783b0..0943e02d 100644 --- a/gson/src/main/java/com/google/gson/Gson.java +++ b/gson/src/main/java/com/google/gson/Gson.java @@ -366,6 +366,7 @@ public final class Gson { * * @throws IllegalArgumentException if this GSON cannot serialize and * deserialize {@code type}. + * @since 2.1 */ public TypeAdapter getNextAdapter(TypeAdapter.Factory skipPast, TypeToken type) { boolean skipPastFound = false; diff --git a/gson/src/main/java/com/google/gson/GsonBuilder.java b/gson/src/main/java/com/google/gson/GsonBuilder.java index 76e6dd61..8f6be6dd 100644 --- a/gson/src/main/java/com/google/gson/GsonBuilder.java +++ b/gson/src/main/java/com/google/gson/GsonBuilder.java @@ -468,6 +468,8 @@ public final class GsonBuilder { * adapter needs to be configured based on the type of the field being processed. Gson * is designed to handle a large number of factories, so you should consider registering * them to be at par with registering an individual type adapter. + * + * @since 2.1 */ public GsonBuilder registerTypeAdapterFactory(TypeAdapter.Factory factory) { factories.add(factory); diff --git a/gson/src/main/java/com/google/gson/TypeAdapter.java b/gson/src/main/java/com/google/gson/TypeAdapter.java index a0737619..f4eda7d0 100644 --- a/gson/src/main/java/com/google/gson/TypeAdapter.java +++ b/gson/src/main/java/com/google/gson/TypeAdapter.java @@ -29,6 +29,10 @@ import java.io.Writer; // TODO: nice documentation +/** + * + * @since 2.1 + */ public abstract class TypeAdapter { public abstract T read(JsonReader reader) throws IOException; public abstract void write(JsonWriter writer, T value) throws IOException; @@ -75,6 +79,9 @@ public abstract class TypeAdapter { } } + /** + * @since 2.1 + */ public interface Factory { TypeAdapter create(Gson gson, TypeToken type); }