From 9efdfad33c6d717764f2b3a5214cf71bdea83c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89amonn=20McManus?= Date: Mon, 24 Oct 2022 17:33:34 -0700 Subject: [PATCH] [maven-release-plugin] prepare release gson-parent-2.10 --- README.md | 4 ++-- UserGuide.md | 4 ++-- extras/pom.xml | 2 +- gson/pom.xml | 4 ++-- gson/src/main/java/com/google/gson/Gson.java | 8 ++++---- gson/src/main/java/com/google/gson/JsonArray.java | 2 +- gson/src/main/java/com/google/gson/JsonObject.java | 2 +- metrics/pom.xml | 2 +- pom.xml | 4 ++-- proto/pom.xml | 2 +- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 0e785781bf..dddaf95feb 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,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.9.1' + implementation 'com.google.code.gson:gson:2.10' } ``` @@ -28,7 +28,7 @@ Maven: com.google.code.gson gson - 2.9.1 + 2.10 ``` diff --git a/UserGuide.md b/UserGuide.md index 49ac54d414..b82bd7252f 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.9.1' + implementation 'com.google.code.gson:gson:2.10' } ``` @@ -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.9.1 + 2.10 compile diff --git a/extras/pom.xml b/extras/pom.xml index 7e5c87caf5..533f78fa93 100644 --- a/extras/pom.xml +++ b/extras/pom.xml @@ -3,7 +3,7 @@ com.google.code.gson gson-parent - 2.9.2-SNAPSHOT + 2.10 gson-extras diff --git a/gson/pom.xml b/gson/pom.xml index 3861a935ed..277ab59861 100644 --- a/gson/pom.xml +++ b/gson/pom.xml @@ -4,7 +4,7 @@ com.google.code.gson gson-parent - 2.9.2-SNAPSHOT + 2.10 gson @@ -246,7 +246,7 @@ 17 - + diff --git a/gson/src/main/java/com/google/gson/Gson.java b/gson/src/main/java/com/google/gson/Gson.java index 7e0cce2133..262cd1750f 100644 --- a/gson/src/main/java/com/google/gson/Gson.java +++ b/gson/src/main/java/com/google/gson/Gson.java @@ -1024,7 +1024,7 @@ public T fromJson(String json, Type typeOfT) throws JsonSyntaxException { * * @see #fromJson(Reader, TypeToken) * @see #fromJson(String, Class) - * @since $next-version$ + * @since 2.10 */ public T fromJson(String json, TypeToken typeOfT) throws JsonSyntaxException { if (json == null) { @@ -1117,7 +1117,7 @@ public T fromJson(Reader json, Type typeOfT) throws JsonIOException, JsonSyn * * @see #fromJson(String, TypeToken) * @see #fromJson(Reader, Class) - * @since $next-version$ + * @since 2.10 */ public T fromJson(Reader json, TypeToken typeOfT) throws JsonIOException, JsonSyntaxException { JsonReader jsonReader = newJsonReader(json); @@ -1201,7 +1201,7 @@ public T fromJson(JsonReader reader, Type typeOfT) throws JsonIOException, J * * @see #fromJson(Reader, TypeToken) * @see #fromJson(JsonReader, Type) - * @since $next-version$ + * @since 2.10 */ public T fromJson(JsonReader reader, TypeToken typeOfT) throws JsonIOException, JsonSyntaxException { boolean isEmpty = true; @@ -1310,7 +1310,7 @@ public T fromJson(JsonElement json, Type typeOfT) throws JsonSyntaxException * * @see #fromJson(Reader, TypeToken) * @see #fromJson(JsonElement, Class) - * @since $next-version$ + * @since 2.10 */ public T fromJson(JsonElement json, TypeToken typeOfT) throws JsonSyntaxException { if (json == null) { diff --git a/gson/src/main/java/com/google/gson/JsonArray.java b/gson/src/main/java/com/google/gson/JsonArray.java index fadc76641c..370b323f8a 100644 --- a/gson/src/main/java/com/google/gson/JsonArray.java +++ b/gson/src/main/java/com/google/gson/JsonArray.java @@ -406,7 +406,7 @@ public boolean getAsBoolean() { * Use {@link JsonNull} for JSON null values. * * @return mutable {@code List} view - * @since $next-version$ + * @since 2.10 */ public List asList() { return new NonNullElementWrapperList<>(elements); diff --git a/gson/src/main/java/com/google/gson/JsonObject.java b/gson/src/main/java/com/google/gson/JsonObject.java index d1c6b30b64..60dac41c4a 100644 --- a/gson/src/main/java/com/google/gson/JsonObject.java +++ b/gson/src/main/java/com/google/gson/JsonObject.java @@ -220,7 +220,7 @@ public JsonObject getAsJsonObject(String memberName) { * Use {@link JsonNull} for JSON null values. * * @return mutable {@code Map} view - * @since $next-version$ + * @since 2.10 */ public Map asMap() { // It is safe to expose the underlying map because it disallows null keys and values diff --git a/metrics/pom.xml b/metrics/pom.xml index 48d943de3e..ca90424810 100644 --- a/metrics/pom.xml +++ b/metrics/pom.xml @@ -3,7 +3,7 @@ com.google.code.gson gson-parent - 2.9.2-SNAPSHOT + 2.10 gson-metrics diff --git a/pom.xml b/pom.xml index 140ab0d3a2..536e591dfc 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.google.code.gson gson-parent - 2.9.2-SNAPSHOT + 2.10 pom Gson Parent @@ -28,7 +28,7 @@ https://github.com/google/gson/ scm:git:https://github.com/google/gson.git scm:git:git@github.com:google/gson.git - HEAD + gson-parent-2.10 diff --git a/proto/pom.xml b/proto/pom.xml index 02b1ef0d1f..ff92060408 100644 --- a/proto/pom.xml +++ b/proto/pom.xml @@ -6,7 +6,7 @@ com.google.code.gson gson-parent - 2.9.2-SNAPSHOT + 2.10 proto