提交 bd783397 编写于 作者: A Ankit

Throw IO and RuntimeException directly without wrapping them into new RuntimeException.

上级 c7f590e7
......@@ -39,6 +39,8 @@ final class SimpleXmlRequestBodyConverter<T> implements Converter<T, RequestBody
OutputStreamWriter osw = new OutputStreamWriter(buffer.outputStream(), CHARSET);
serializer.write(value, osw);
osw.flush();
} catch (RuntimeException | IOException e) {
throw e;
} catch (Exception e) {
throw new RuntimeException(e);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册