This is an automated email from the ASF dual-hosted git repository. heliang666s pushed a commit to branch fix-resource-leaks in repository https://gitbox.apache.org/repos/asf/dubbo.git
commit f4d284c38b71e88f84d5ee0a59ce9fd0ae8a618e Author: heliang666s <[email protected]> AuthorDate: Tue Dec 16 11:39:49 2025 +0800 fix: resolve resource leaks using try-with-resources --- dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java b/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java index 30e6bd83a5..cd252be3e8 100644 --- a/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java +++ b/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java @@ -787,7 +787,7 @@ public class Bytes { UnsafeByteArrayOutputStream bos = new UnsafeByteArrayOutputStream(); try (DeflaterOutputStream os = new DeflaterOutputStream(bos)) { os.write(bytes); - }finally { + } finally { bos.close(); } return bos.toByteArray();
