Fix some typos in gson comments.

This commit is contained in:
Dongjoon Hyun 2016-02-15 14:11:23 -08:00
parent 6f15cd0060
commit aa209fa255
5 changed files with 5 additions and 5 deletions

View File

@ -68,7 +68,7 @@ public final class FieldAttributes {
* private List<String> red; * private List<String> red;
* } * }
* *
* Type listParmeterizedType = new TypeToken<List<String>>() {}.getType(); * Type listParameterizedType = new TypeToken<List<String>>() {}.getType();
* </pre> * </pre>
* *
* <p>This method would return {@code String.class} for the {@code bar} field and * <p>This method would return {@code String.class} for the {@code bar} field and

View File

@ -78,7 +78,7 @@ import com.google.gson.stream.MalformedJsonException;
* <p>If the object that your are serializing/deserializing is a {@code ParameterizedType} * <p>If the object that your are serializing/deserializing is a {@code ParameterizedType}
* (i.e. contains at least one type parameter and may be an array) then you must use the * (i.e. contains at least one type parameter and may be an array) then you must use the
* {@link #toJson(Object, Type)} or {@link #fromJson(String, Type)} method. Here is an * {@link #toJson(Object, Type)} or {@link #fromJson(String, Type)} method. Here is an
* example for serializing and deserialing a {@code ParameterizedType}: * example for serializing and deserializing a {@code ParameterizedType}:
* *
* <pre> * <pre>
* Type listType = new TypeToken&lt;List&lt;String&gt;&gt;() {}.getType(); * Type listType = new TypeToken&lt;List&lt;String&gt;&gt;() {}.getType();

View File

@ -303,7 +303,7 @@ public final class GsonBuilder {
* Configures Gson to apply a set of exclusion strategies during both serialization and * Configures Gson to apply a set of exclusion strategies during both serialization and
* deserialization. Each of the {@code strategies} will be applied as a disjunction rule. * deserialization. Each of the {@code strategies} will be applied as a disjunction rule.
* This means that if one of the {@code strategies} suggests that a field (or class) should be * This means that if one of the {@code strategies} suggests that a field (or class) should be
* skipped then that field (or object) is skipped during serializaiton/deserialization. * skipped then that field (or object) is skipped during serialization/deserialization.
* *
* @param strategies the set of strategy object to apply during object (de)serialization. * @param strategies the set of strategy object to apply during object (de)serialization.
* @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern * @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern

View File

@ -26,7 +26,7 @@ import java.lang.reflect.Type;
import java.util.List; import java.util.List;
/** /**
* Unit tests for {@code ParamterizedType}s created by the {@link $Gson$Types} class. * Unit tests for {@code ParameterizedType}s created by the {@link $Gson$Types} class.
* *
* @author Inderjeet Singh * @author Inderjeet Singh
* @author Joel Leitch * @author Joel Leitch

View File

@ -25,7 +25,7 @@ public final class SerializedNameTest extends TestCase {
public void testFirstNameIsChosenForSerialization() { public void testFirstNameIsChosenForSerialization() {
MyClass target = new MyClass("v1", "v2"); MyClass target = new MyClass("v1", "v2");
// Ensure name1 occurs exactly once, and name2 and name3 dont appear // Ensure name1 occurs exactly once, and name2 and name3 don't appear
assertEquals("{\"name\":\"v1\",\"name1\":\"v2\"}", gson.toJson(target)); assertEquals("{\"name\":\"v1\",\"name1\":\"v2\"}", gson.toJson(target));
} }