Skip to content

Commit

Permalink
Merge pull request google#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 fc100d4 + 72277c8 commit e1119ec
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 e1119ec

Please sign in to comment.