@@ -131,7 +131,7 @@ public abstract class TypeAdapter<T> {
131131 * Unlike Gson's similar {@link Gson#toJson(JsonElement, Appendable) toJson}
132132 * method, this write is strict. Create a {@link
133133 * JsonWriter#setLenient(boolean) lenient} {@code JsonWriter} and call
134- * {@link #write(com.google.gson.stream. JsonWriter, Object)} for lenient
134+ * {@link #write(JsonWriter, Object)} for lenient
135135 * writing.
136136 *
137137 * @param value the Java object to convert. May be null.
@@ -205,9 +205,9 @@ public final TypeAdapter<T> nullSafe() {
205205 * Converts {@code value} to a JSON document. Unlike Gson's similar {@link
206206 * Gson#toJson(Object) toJson} method, this write is strict. Create a {@link
207207 * JsonWriter#setLenient(boolean) lenient} {@code JsonWriter} and call
208- * {@link #write(com.google.gson.stream.JsonWriter, Object)} for lenient
209- * writing.
208+ * {@link #write(JsonWriter, Object)} for lenient writing.
210209 *
210+ * @throws JsonIOException wrapping {@code IOException}s thrown by {@link #write(JsonWriter, Object)}
211211 * @param value the Java object to convert. May be null.
212212 * @since 2.2
213213 */
@@ -226,6 +226,7 @@ public final String toJson(T value) {
226226 *
227227 * @param value the Java object to convert. May be null.
228228 * @return the converted JSON tree. May be {@link JsonNull}.
229+ * @throws JsonIOException wrapping {@code IOException}s thrown by {@link #write(JsonWriter, Object)}
229230 * @since 2.2
230231 */
231232 public final JsonElement toJsonTree (T value ) {
@@ -248,7 +249,7 @@ public final JsonElement toJsonTree(T value) {
248249
249250 /**
250251 * Converts the JSON document in {@code in} to a Java object. Unlike Gson's
251- * similar {@link Gson#fromJson(java.io. Reader, Class) fromJson} method, this
252+ * similar {@link Gson#fromJson(Reader, Class) fromJson} method, this
252253 * read is strict. Create a {@link JsonReader#setLenient(boolean) lenient}
253254 * {@code JsonReader} and call {@link #read(JsonReader)} for lenient reading.
254255 *
@@ -284,6 +285,7 @@ public final T fromJson(String json) throws IOException {
284285 *
285286 * @param jsonTree the JSON element to convert. May be {@link JsonNull}.
286287 * @return the converted Java object. May be null.
288+ * @throws JsonIOException wrapping {@code IOException}s thrown by {@link #read(JsonReader)}
287289 * @since 2.2
288290 */
289291 public final T fromJsonTree (JsonElement jsonTree ) {
0 commit comments