Merge pull request #830 from gavlyukovskiy/patch-1

fixed throwing RuntimeException instead of JsonIOException
This commit is contained in:
inder123 2016-04-15 22:31:31 -07:00
commit 6f6af80507

View File

@ -679,7 +679,7 @@ public final class Gson {
JsonWriter jsonWriter = newJsonWriter(Streams.writerForAppendable(writer));
toJson(jsonElement, jsonWriter);
} catch (IOException e) {
throw new RuntimeException(e);
throw new JsonIOException(e);
}
}