From 5a87d806550f8389fb26327bcf97751c6851d7c7 Mon Sep 17 00:00:00 2001 From: elevne <97422844+elevne@users.noreply.github.com> Date: Thu, 27 Jul 2023 00:47:28 +0900 Subject: [PATCH] Fixed Typo in GsonBuilder.java (#2449) --- gson/src/main/java/com/google/gson/GsonBuilder.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gson/src/main/java/com/google/gson/GsonBuilder.java b/gson/src/main/java/com/google/gson/GsonBuilder.java index e3d48182..c72c411f 100644 --- a/gson/src/main/java/com/google/gson/GsonBuilder.java +++ b/gson/src/main/java/com/google/gson/GsonBuilder.java @@ -57,8 +57,7 @@ import java.util.Objects; * use {@code new Gson()}. {@code GsonBuilder} is best used by creating it, and then invoking its * various configuration methods, and finally calling create.

* - *

The following is an example shows how to use the {@code GsonBuilder} to construct a Gson - * instance: + *

The following example shows how to use the {@code GsonBuilder} to construct a Gson instance: * *

  * Gson gson = new GsonBuilder()
@@ -120,7 +119,7 @@ public final class 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;
@@ -274,7 +273,7 @@ public final class GsonBuilder {
    * {"x":2,"y":3}}.
    *
    * 

Given the assumption above, a {@code Map} 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). * *

Below is an example of serializing complex types as JSON arrays: *

 {@code
@@ -574,7 +573,7 @@ public final class GsonBuilder {
   }
 
   /**
-   * 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.
    *
@@ -595,7 +594,7 @@ public final class GsonBuilder {
   }
 
   /**
-   * 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.
    *