diff --git a/gson/src/main/java/com/google/gson/GsonBuilder.java b/gson/src/main/java/com/google/gson/GsonBuilder.java
index 3af74d66..edc3b5fb 100644
--- a/gson/src/main/java/com/google/gson/GsonBuilder.java
+++ b/gson/src/main/java/com/google/gson/GsonBuilder.java
@@ -56,8 +56,8 @@ import java.util.Set;
*
the order of invocation of configuration methods does not matter.
* The default serialization of {@link Date} and its subclasses in Gson does
* not contain time-zone information. So, if you are using date/time instances,
- * use {@code GsonBuilder} and its {@code setDateFormat} methods.
- *
+ * use {@code GsonBuilder} and its {@code setDateFormat} methods.
+ *
*
*
* @author Inderjeet Singh
@@ -360,12 +360,12 @@ public final class GsonBuilder {
* 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 serialization.
*
- * @param strategies the set of strategy objects to apply during serialization.
+ * @param strategy an exclusion strategy to apply during serialization.
* @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern
* @since 1.7
*/
- public GsonBuilder addSerializationExclusionStrategies(ExclusionStrategy... strategies) {
- serializeExclusionStrategies.addAll(Arrays.asList(strategies));
+ public GsonBuilder addSerializationExclusionStrategies(ExclusionStrategy strategy) {
+ serializeExclusionStrategies.add(strategy);
return this;
}
@@ -375,12 +375,12 @@ public final class GsonBuilder {
* 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 deserialization.
*
- * @param strategies the set of strategy object to apply during deserialization.
+ * @param strategy an exclusion strategy to apply during deserialization.
* @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern
* @since 1.7
*/
- public GsonBuilder addDeserializationExclusionStrategies(ExclusionStrategy... strategies) {
- deserializeExclusionStrategies.addAll(Arrays.asList(strategies));
+ public GsonBuilder addDeserializationExclusionStrategies(ExclusionStrategy strategy) {
+ deserializeExclusionStrategies.add(strategy);
return this;
}
/**