Update IoUtils.java (#8948)

An IOException has been catch,so throws IOException Is invalid
This commit is contained in:
liushaoyu-soft 2022-08-12 16:42:38 +08:00 committed by GitHub
parent 8cede1cf84
commit 474b25dff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,9 +52,8 @@ public class IoUtils {
* *
* @param raw compress stream * @param raw compress stream
* @return byte array after decompress * @return byte array after decompress
* @throws IOException exception
*/ */
public static byte[] tryDecompress(InputStream raw) throws IOException { public static byte[] tryDecompress(InputStream raw) {
GZIPInputStream gis = null; GZIPInputStream gis = null;
ByteArrayOutputStream out = null; ByteArrayOutputStream out = null;
try { try {