mirror of
https://gitee.com/dromara/hutool.git
synced 2026-02-09 09:16:26 +08:00
fix code
This commit is contained in:
@@ -1098,11 +1098,7 @@ public class IoUtil extends NioUtil {
|
||||
* @since 5.7.17
|
||||
*/
|
||||
public static String toStr(final ByteArrayOutputStream out, final Charset charset) {
|
||||
try {
|
||||
return out.toString(charset.name());
|
||||
} catch (final UnsupportedEncodingException e) {
|
||||
throw new IORuntimeException(e);
|
||||
}
|
||||
return out.toString(charset);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user