diff --git a/README.md b/README.md index a4a674ba64..29275d6268 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ There are a few open-source projects that can convert Java objects to JSON. Howe Gradle: ```gradle dependencies { - implementation 'com.google.code.gson:gson:2.10.1' + implementation 'com.google.code.gson:gson:2.11.0' } ``` @@ -33,7 +33,7 @@ Maven: com.google.code.gson gson - 2.10.1 + 2.11.0 ``` diff --git a/UserGuide.md b/UserGuide.md index aa0b831c84..0559968d9b 100644 --- a/UserGuide.md +++ b/UserGuide.md @@ -76,7 +76,7 @@ The Gson instance does not maintain any state while invoking JSON operations. So ```gradle dependencies { - implementation 'com.google.code.gson:gson:2.10.1' + implementation 'com.google.code.gson:gson:2.11.0' } ``` @@ -90,7 +90,7 @@ To use Gson with Maven2/3, you can use the Gson version available in Maven Centr com.google.code.gson gson - 2.10.1 + 2.11.0 compile diff --git a/extras/pom.xml b/extras/pom.xml index c792292ebc..b9d0dae5b1 100644 --- a/extras/pom.xml +++ b/extras/pom.xml @@ -19,7 +19,7 @@ com.google.code.gson gson-parent - 2.10.2-SNAPSHOT + 2.11.0 gson-extras @@ -30,7 +30,7 @@ - 2023-01-01T00:00:00Z + 2024-05-19T17:21:46Z diff --git a/graal-native-image-test/pom.xml b/graal-native-image-test/pom.xml index e70a645964..640e51b624 100644 --- a/graal-native-image-test/pom.xml +++ b/graal-native-image-test/pom.xml @@ -20,14 +20,14 @@ com.google.code.gson gson-parent - 2.10.2-SNAPSHOT + 2.11.0 graal-native-image-test - 2023-01-01T00:00:00Z + 2024-05-19T17:21:46Z diff --git a/gson/pom.xml b/gson/pom.xml index ea3656fa85..d5a6693fa5 100644 --- a/gson/pom.xml +++ b/gson/pom.xml @@ -20,7 +20,7 @@ com.google.code.gson gson-parent - 2.10.2-SNAPSHOT + 2.11.0 gson @@ -36,7 +36,7 @@ - 2023-01-01T00:00:00Z + 2024-05-19T17:21:46Z **/Java17* diff --git a/gson/src/main/java/com/google/gson/FormattingStyle.java b/gson/src/main/java/com/google/gson/FormattingStyle.java index 11b9490812..7d092afa15 100644 --- a/gson/src/main/java/com/google/gson/FormattingStyle.java +++ b/gson/src/main/java/com/google/gson/FormattingStyle.java @@ -34,7 +34,7 @@ * @see GsonBuilder#setFormattingStyle(FormattingStyle) * @see JsonWriter#setFormattingStyle(FormattingStyle) * @see Wikipedia Newline article - * @since $next-version$ + * @since 2.11.0 */ public class FormattingStyle { private final String newline; diff --git a/gson/src/main/java/com/google/gson/GsonBuilder.java b/gson/src/main/java/com/google/gson/GsonBuilder.java index 775c793449..a8212f8d9f 100644 --- a/gson/src/main/java/com/google/gson/GsonBuilder.java +++ b/gson/src/main/java/com/google/gson/GsonBuilder.java @@ -522,7 +522,7 @@ public GsonBuilder setPrettyPrinting() { * * @param formattingStyle the formatting style to use. * @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern - * @since $next-version$ + * @since 2.11.0 */ @CanIgnoreReturnValue public GsonBuilder setFormattingStyle(FormattingStyle formattingStyle) { @@ -560,7 +560,7 @@ public GsonBuilder setLenient() { * @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern. * @see JsonReader#setStrictness(Strictness) * @see JsonWriter#setStrictness(Strictness) - * @since $next-version$ + * @since 2.11.0 */ @CanIgnoreReturnValue public GsonBuilder setStrictness(Strictness strictness) { diff --git a/gson/src/main/java/com/google/gson/Strictness.java b/gson/src/main/java/com/google/gson/Strictness.java index 775214f36b..b207cf508c 100644 --- a/gson/src/main/java/com/google/gson/Strictness.java +++ b/gson/src/main/java/com/google/gson/Strictness.java @@ -14,7 +14,7 @@ * * @see JsonReader#setStrictness(Strictness) * @see JsonWriter#setStrictness(Strictness) - * @since $next-version$ + * @since 2.11.0 */ public enum Strictness { /** Allow large deviations from the JSON specification. */ diff --git a/gson/src/main/java/com/google/gson/stream/JsonReader.java b/gson/src/main/java/com/google/gson/stream/JsonReader.java index 83186a1a42..d2846f6b32 100644 --- a/gson/src/main/java/com/google/gson/stream/JsonReader.java +++ b/gson/src/main/java/com/google/gson/stream/JsonReader.java @@ -394,7 +394,7 @@ public final boolean isLenient() { * * @param strictness the new strictness value of this reader. May not be {@code null}. * @see #getStrictness() - * @since $next-version$ + * @since 2.11.0 */ public final void setStrictness(Strictness strictness) { Objects.requireNonNull(strictness); @@ -405,7 +405,7 @@ public final void setStrictness(Strictness strictness) { * Returns the {@linkplain Strictness strictness} of this reader. * * @see #setStrictness(Strictness) - * @since $next-version$ + * @since 2.11.0 */ public final Strictness getStrictness() { return strictness; diff --git a/gson/src/main/java/com/google/gson/stream/JsonWriter.java b/gson/src/main/java/com/google/gson/stream/JsonWriter.java index 1a3c442749..7b67537579 100644 --- a/gson/src/main/java/com/google/gson/stream/JsonWriter.java +++ b/gson/src/main/java/com/google/gson/stream/JsonWriter.java @@ -261,7 +261,7 @@ public final void setIndent(String indent) { * level of indentation, or the newline style, to accommodate various OS styles. * * @param formattingStyle the formatting style to use, must not be {@code null}. - * @since $next-version$ + * @since 2.11.0 */ public final void setFormattingStyle(FormattingStyle formattingStyle) { this.formattingStyle = Objects.requireNonNull(formattingStyle); @@ -286,7 +286,7 @@ public final void setFormattingStyle(FormattingStyle formattingStyle) { * Returns the pretty printing style used by this writer. * * @return the {@code FormattingStyle} that will be used. - * @since $next-version$ + * @since 2.11.0 */ public final FormattingStyle getFormattingStyle() { return formattingStyle; @@ -339,7 +339,7 @@ public boolean isLenient() { * * @param strictness the new strictness of this writer. May not be {@code null}. * @see #getStrictness() - * @since $next-version$ + * @since 2.11.0 */ public final void setStrictness(Strictness strictness) { this.strictness = Objects.requireNonNull(strictness); @@ -349,7 +349,7 @@ public final void setStrictness(Strictness strictness) { * Returns the {@linkplain Strictness strictness} of this writer. * * @see #setStrictness(Strictness) - * @since $next-version$ + * @since 2.11.0 */ public final Strictness getStrictness() { return strictness; diff --git a/metrics/pom.xml b/metrics/pom.xml index 63fe091cf0..d2598c3b8d 100644 --- a/metrics/pom.xml +++ b/metrics/pom.xml @@ -19,7 +19,7 @@ com.google.code.gson gson-parent - 2.10.2-SNAPSHOT + 2.11.0 gson-metrics @@ -30,7 +30,7 @@ - 2023-01-01T00:00:00Z + 2024-05-19T17:21:46Z diff --git a/pom.xml b/pom.xml index 358fd05937..28635561b5 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ com.google.code.gson gson-parent - 2.10.2-SNAPSHOT + 2.11.0 pom Gson Parent @@ -42,7 +42,7 @@ - 2023-01-01T00:00:00Z + 2024-05-19T17:21:46Z - 2023-01-01T00:00:00Z + 2024-05-19T17:21:46Z 4.26.1 diff --git a/shrinker-test/pom.xml b/shrinker-test/pom.xml index 50a7266405..d8374c197f 100644 --- a/shrinker-test/pom.xml +++ b/shrinker-test/pom.xml @@ -20,7 +20,7 @@ com.google.code.gson gson-parent - 2.10.2-SNAPSHOT + 2.11.0 shrinker-test @@ -28,7 +28,7 @@ - 2023-01-01T00:00:00Z + 2024-05-19T17:21:46Z 8