From 474b25dff575f6f2a1bc79986819ac9c5348da32 Mon Sep 17 00:00:00 2001 From: liushaoyu-soft <455028117@qq.com> Date: Fri, 12 Aug 2022 16:42:38 +0800 Subject: [PATCH] Update IoUtils.java (#8948) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An IOException has been catch,so throws IOException Is invalid --- .../src/main/java/com/alibaba/nacos/common/utils/IoUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/src/main/java/com/alibaba/nacos/common/utils/IoUtils.java b/common/src/main/java/com/alibaba/nacos/common/utils/IoUtils.java index 98f4ebacc..28c47576d 100644 --- a/common/src/main/java/com/alibaba/nacos/common/utils/IoUtils.java +++ b/common/src/main/java/com/alibaba/nacos/common/utils/IoUtils.java @@ -52,9 +52,8 @@ public class IoUtils { * * @param raw compress stream * @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; ByteArrayOutputStream out = null; try {