From 6387c9028e3bcd8a2e44a697af592998d232cca2 Mon Sep 17 00:00:00 2001 From: Joel Leitch Date: Fri, 9 Oct 2009 15:26:34 +0000 Subject: [PATCH] Updated JavaDoc formatting --- gson/src/main/java/com/google/gson/ExclusionStrategy.java | 7 ++++--- gson/src/main/java/com/google/gson/GsonBuilder.java | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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: *

  * 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;
  *
  * 

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: + *

  * 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.
    *