Skip to content

Commit b410dfe

Browse files
committed
fix: resolve resource leaks using try-with-resources
1 parent 1b3651c commit b410dfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • dubbo-common/src/main/java/org/apache/dubbo/common/io

dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ public static byte[] zip(byte[] bytes) throws IOException {
787787
UnsafeByteArrayOutputStream bos = new UnsafeByteArrayOutputStream();
788788
try (DeflaterOutputStream os = new DeflaterOutputStream(bos)) {
789789
os.write(bytes);
790-
}finally {
790+
} finally {
791791
bos.close();
792792
}
793793
return bos.toByteArray();

0 commit comments

Comments
 (0)