Skip to content

Commit

Permalink
Clarify that GsonBuilder.setExclusionStrategies does not replace ex…
Browse files Browse the repository at this point in the history
…isting ones (#2168)

* Clarify that `GsonBuilder.setExclusionStrategies` does not replace existing ones

* Fix punctuation
  • Loading branch information
Marcono1234 committed Aug 6, 2022
1 parent 246270e commit 390385e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gson/src/main/java/com/google/gson/GsonBuilder.java
Expand Up @@ -368,6 +368,8 @@ public GsonBuilder setNumberToNumberStrategy(ToNumberStrategy numberToNumberStra
* 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 serialization/deserialization.
* The strategies are added to the existing strategies (if any); the existing strategies
* are not replaced.
*
* @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
Expand Down

0 comments on commit 390385e

Please sign in to comment.