Skip to content

Commit

Permalink
Fixed Typo in GsonBuilder.java (#2449)
Browse files Browse the repository at this point in the history
  • Loading branch information
elevne committed Jul 26, 2023
1 parent a38b757 commit 5a87d80
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions gson/src/main/java/com/google/gson/GsonBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
* use {@code new Gson()}. {@code GsonBuilder} is best used by creating it, and then invoking its
* various configuration methods, and finally calling create.</p>
*
* <p>The following is an example shows how to use the {@code GsonBuilder} to construct a Gson
* instance:
* <p>The following example shows how to use the {@code GsonBuilder} to construct a Gson instance:
*
* <pre>
* Gson gson = new GsonBuilder()
Expand Down Expand Up @@ -120,7 +119,7 @@ public GsonBuilder() {
* Constructs a GsonBuilder instance from a Gson instance. The newly constructed GsonBuilder
* has the same configuration as the previously built Gson instance.
*
* @param gson the gson instance whose configuration should by applied to a new GsonBuilder.
* @param gson the gson instance whose configuration should be applied to a new GsonBuilder.
*/
GsonBuilder(Gson gson) {
this.excluder = gson.excluder;
Expand Down Expand Up @@ -274,7 +273,7 @@ public GsonBuilder serializeNulls() {
* {"x":2,"y":3}}.
*
* <p>Given the assumption above, a {@code Map<Point, String>} will be
* serialize as an array of arrays (can be viewed as an entry set of pairs).
* serialized as an array of arrays (can be viewed as an entry set of pairs).
*
* <p>Below is an example of serializing complex types as JSON arrays:
* <pre> {@code
Expand Down Expand Up @@ -574,7 +573,7 @@ public GsonBuilder setDateFormat(String pattern) {
}

/**
* Configures Gson to to serialize {@code Date} objects according to the style value provided.
* Configures Gson to serialize {@code Date} objects according to the style value provided.
* You can call this method or {@link #setDateFormat(String)} multiple times, but only the last
* invocation will be used to decide the serialization format.
*
Expand All @@ -595,7 +594,7 @@ public GsonBuilder setDateFormat(int style) {
}

/**
* Configures Gson to to serialize {@code Date} objects according to the style value provided.
* Configures Gson to serialize {@code Date} objects according to the style value provided.
* You can call this method or {@link #setDateFormat(String)} multiple times, but only the last
* invocation will be used to decide the serialization format.
*
Expand Down

0 comments on commit 5a87d80

Please sign in to comment.