Merge pull request #830 from gavlyukovskiy/patch-1
fixed throwing RuntimeException instead of JsonIOException
This commit is contained in:
commit
6f6af80507
|
@ -679,7 +679,7 @@ public final class Gson {
|
||||||
JsonWriter jsonWriter = newJsonWriter(Streams.writerForAppendable(writer));
|
JsonWriter jsonWriter = newJsonWriter(Streams.writerForAppendable(writer));
|
||||||
toJson(jsonElement, jsonWriter);
|
toJson(jsonElement, jsonWriter);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new JsonIOException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user