diff --git a/gson/src/main/java/com/google/gson/ExclusionStrategy.java b/gson/src/main/java/com/google/gson/ExclusionStrategy.java index 3fa9c18e..08fafedf 100644 --- a/gson/src/main/java/com/google/gson/ExclusionStrategy.java +++ b/gson/src/main/java/com/google/gson/ExclusionStrategy.java @@ -75,12 +75,12 @@ package com.google.gson; *

For certain model classes, you may only want to serialize a field, but exclude it for * deserialization. To do that, you can write an {@code ExclusionStrategy} as per normal; * however, you would register it with the - * {@link GsonBuilder#addDeserializationExclusionStrategy(ExclusionStrategy...)} method. + * {@link GsonBuilder#addDeserializationExclusionStrategy(ExclusionStrategy)} method. * For example: *

  * ExclusionStrategy excludeStrings = new UserDefinedExclusionStrategy(String.class);
  * Gson gson = new GsonBuilder()
- *     .addDeserializationExclusionStrategies(excludeStrings)
+ *     .addDeserializationExclusionStrategy(excludeStrings)
  *     .create();
  * 
* @@ -88,6 +88,8 @@ package com.google.gson; * @author Joel Leitch * * @see GsonBuilder#setExclusionStrategies(ExclusionStrategy...) + * @see GsonBuilder#addDeserializationExclusionStrategy(ExclusionStrategy) + * @see GsonBuilder#addSerializationExclusionStrategy(ExclusionStrategy) * * @since 1.4 */