diff --git a/gson/src/main/java/com/google/gson/FieldAttributes.java b/gson/src/main/java/com/google/gson/FieldAttributes.java index cb89ff11..bcabff14 100644 --- a/gson/src/main/java/com/google/gson/FieldAttributes.java +++ b/gson/src/main/java/com/google/gson/FieldAttributes.java @@ -68,7 +68,7 @@ public final class FieldAttributes { * private List<String> red; * } * - * Type listParmeterizedType = new TypeToken<List<String>>() {}.getType(); + * Type listParameterizedType = new TypeToken<List<String>>() {}.getType(); * * *
This method would return {@code String.class} for the {@code bar} field and diff --git a/gson/src/main/java/com/google/gson/Gson.java b/gson/src/main/java/com/google/gson/Gson.java index 85fa6741..106d2485 100644 --- a/gson/src/main/java/com/google/gson/Gson.java +++ b/gson/src/main/java/com/google/gson/Gson.java @@ -78,7 +78,7 @@ import com.google.gson.stream.MalformedJsonException; *
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 * {@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}: * *
* Type listType = new TypeToken<List<String>>() {}.getType(); diff --git a/gson/src/main/java/com/google/gson/GsonBuilder.java b/gson/src/main/java/com/google/gson/GsonBuilder.java index ca87fbb8..b258e22f 100644 --- a/gson/src/main/java/com/google/gson/GsonBuilder.java +++ b/gson/src/main/java/com/google/gson/GsonBuilder.java @@ -303,7 +303,7 @@ public final class GsonBuilder { * 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. * 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. * @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern diff --git a/gson/src/test/java/com/google/gson/ParameterizedTypeTest.java b/gson/src/test/java/com/google/gson/ParameterizedTypeTest.java index 8b56579e..24d78e89 100644 --- a/gson/src/test/java/com/google/gson/ParameterizedTypeTest.java +++ b/gson/src/test/java/com/google/gson/ParameterizedTypeTest.java @@ -26,7 +26,7 @@ import java.lang.reflect.Type; 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 Joel Leitch diff --git a/gson/src/test/java/com/google/gson/functional/SerializedNameTest.java b/gson/src/test/java/com/google/gson/functional/SerializedNameTest.java index 38ad8242..0314ae0a 100644 --- a/gson/src/test/java/com/google/gson/functional/SerializedNameTest.java +++ b/gson/src/test/java/com/google/gson/functional/SerializedNameTest.java @@ -25,7 +25,7 @@ public final class SerializedNameTest extends TestCase { public void testFirstNameIsChosenForSerialization() { 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)); }