diff --git a/gson/src/main/java/com/google/gson/ExclusionStrategy.java b/gson/src/main/java/com/google/gson/ExclusionStrategy.java index 9ea4ab8e..702d7e96 100644 --- a/gson/src/main/java/com/google/gson/ExclusionStrategy.java +++ b/gson/src/main/java/com/google/gson/ExclusionStrategy.java @@ -25,12 +25,12 @@ package com.google.gson; * *
The following are a few examples that shows how you can use this exclusion mechanism. * - *
Exclude fields and objects based on a particular class type:
+ * Exclude fields and objects based on a particular class type:
* Now if you want to configure {@code Gson} to use a user defined exclusion strategy, then
* the {@code GsonBuilder} is required. The following is an example of how you can use the
- * {@code GsonBuilder} to configure Gson to use one of the above sample
+ * {@code GsonBuilder} to configure Gson to use one of the above sample:
+ *
* private static class SpecificClassExclusionStrategy implements ExclusionStrategy {
* private final Class<?> excludedThisClass;
*
- * public pecificClassExclusionStrategy(Class<?> excludedThisClass) {
+ * public SpecificClassExclusionStrategy(Class<?> excludedThisClass) {
* this.excludedThisClass = excludedThisClass;
* }
*
@@ -64,7 +64,8 @@ package com.google.gson;
*
*
* ExclusionStrategy excludeStrings = new UserDefinedExclusionStrategy(String.class);
* Gson gson = new GsonBuilder()
* .setExclusionStrategies(excludeStrings)
diff --git a/gson/src/main/java/com/google/gson/GsonBuilder.java b/gson/src/main/java/com/google/gson/GsonBuilder.java
index f4f00844..f49044e5 100644
--- a/gson/src/main/java/com/google/gson/GsonBuilder.java
+++ b/gson/src/main/java/com/google/gson/GsonBuilder.java
@@ -229,7 +229,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 disjunctive 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
* skipped then that field (or object) is skipped during serializaiton/deserialization.
*