Skip to content

Commit

Permalink
Fix google#45: Resolve various comments by eamonmcmanus
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-voorberg committed Mar 7, 2023
1 parent 79295c8 commit d0a4065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gson/src/main/java/com/google/gson/Gson.java
Expand Up @@ -110,7 +110,7 @@
* comply with the JSON specification, even when the strictness {@link Strictness#DEFAULT}
* is used. To restrict a {@code Gson} instance from parsing JSON that
* does not comply with the JSON specification, {@linkplain Strictness#STRICT strict} mode should be used.
* Alternatively, if you do not with to use {@linkplain Strictness#STRICT strict} mode,
* Alternatively, if you do not want to use {@linkplain Strictness#STRICT strict} mode,
* the following workarounds can be used:
*
* <h3>Serialization</h3>
Expand Down Expand Up @@ -830,7 +830,7 @@ public void toJson(Object src, Type typeOfSrc, Appendable writer) throws JsonIOE
* the provided {@link JsonWriter} except when the writer is in
* {@linkplain Strictness#DEFAULT default} mode. In that case, for legacy reasons,
* the JSON is written in {@link Strictness#LENIENT lenient} mode.
* The original strictness mode of the writer is returned when this method returns.
* The original strictness mode of the writer is restored when this method returns.
*
* <p>The 'HTML-safe' and 'serialize {@code null}' settings of this {@code Gson} instance
* (configured by the {@link GsonBuilder}) are applied, and the original settings of the
Expand Down

0 comments on commit d0a4065

Please sign in to comment.