Merge pull request #792 from dongjoon-hyun/fix_typos
Fix some typos in gson comments.
This commit is contained in:
commit
02838e1e30
@ -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();
|
||||
* </pre>
|
||||
*
|
||||
* <p>This method would return {@code String.class} for the {@code bar} field and
|
||||
|
@ -78,7 +78,7 @@ import com.google.gson.stream.MalformedJsonException;
|
||||
* <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
|
||||
* {@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>
|
||||
* Type listType = new TypeToken<List<String>>() {}.getType();
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user