diff options
Diffstat (limited to 'gson/src/main/java/com/google/gson/JsonParser.java')
-rw-r--r-- | gson/src/main/java/com/google/gson/JsonParser.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gson/src/main/java/com/google/gson/JsonParser.java b/gson/src/main/java/com/google/gson/JsonParser.java index d3508c10..5b800420 100644 --- a/gson/src/main/java/com/google/gson/JsonParser.java +++ b/gson/src/main/java/com/google/gson/JsonParser.java @@ -45,6 +45,7 @@ public final class JsonParser { * @param json JSON text
* @return a parse tree of {@link JsonElement}s corresponding to the specified JSON
* @throws JsonParseException if the specified text is not valid JSON
+ * @since 2.8.6
*/
public static JsonElement parseString(String json) throws JsonSyntaxException {
return parseReader(new StringReader(json));
@@ -61,6 +62,7 @@ public final class JsonParser { * @return a parse tree of {@link JsonElement}s corresponding to the specified JSON
* @throws JsonParseException if there is an IOException or if the specified
* text is not valid JSON
+ * @since 2.8.6
*/
public static JsonElement parseReader(Reader reader) throws JsonIOException, JsonSyntaxException {
try {
@@ -90,6 +92,7 @@ public final class JsonParser { *
* @throws JsonParseException if there is an IOException or if the specified
* text is not valid JSON
+ * @since 2.8.6
*/
public static JsonElement parseReader(JsonReader reader)
throws JsonIOException, JsonSyntaxException {
|