Skip to content

Commit

Permalink
Merge pull request #830 from gavlyukovskiy/patch-1
Browse files Browse the repository at this point in the history
fixed throwing RuntimeException instead of JsonIOException
  • Loading branch information
inder123 committed Apr 16, 2016
2 parents a477f4f + 966de9e commit 6f6af80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gson/src/main/java/com/google/gson/Gson.java
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 6f6af80

Please sign in to comment.