From 966de9e60dd6a828cb52548dd8de77adc86bd319 Mon Sep 17 00:00:00 2001 From: gavlyukovskiy Date: Fri, 15 Apr 2016 21:00:59 +0300 Subject: [PATCH] fixed throwing RuntimeException instead of JsonIOException --- gson/src/main/java/com/google/gson/Gson.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gson/src/main/java/com/google/gson/Gson.java b/gson/src/main/java/com/google/gson/Gson.java index 64e54c4e02..073091ef64 100644 --- a/gson/src/main/java/com/google/gson/Gson.java +++ b/gson/src/main/java/com/google/gson/Gson.java @@ -679,7 +679,7 @@ public void toJson(JsonElement jsonElement, Appendable writer) throws JsonIOExce JsonWriter jsonWriter = newJsonWriter(Streams.writerForAppendable(writer)); toJson(jsonElement, jsonWriter); } catch (IOException e) { - throw new RuntimeException(e); + throw new JsonIOException(e); } }