This is an automated email from the ASF dual-hosted git repository.

jimin pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/incubator-seata.git


The following commit(s) were added to refs/heads/2.x by this push:
     new 4d583083fe optimize: correct variable name typo in DeflaterUtil (#7668)
4d583083fe is described below

commit 4d583083fe2564847f0099eb144e220f37c23f29
Author: Shuxin Pan <[email protected]>
AuthorDate: Mon Sep 29 10:16:15 2025 +0800

    optimize: correct variable name typo in DeflaterUtil (#7668)
---
 .../java/org/apache/seata/compressor/deflater/DeflaterUtil.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/compressor/seata-compressor-deflater/src/main/java/org/apache/seata/compressor/deflater/DeflaterUtil.java
 
b/compressor/seata-compressor-deflater/src/main/java/org/apache/seata/compressor/deflater/DeflaterUtil.java
index 71f5715569..6d08e14e09 100644
--- 
a/compressor/seata-compressor-deflater/src/main/java/org/apache/seata/compressor/deflater/DeflaterUtil.java
+++ 
b/compressor/seata-compressor-deflater/src/main/java/org/apache/seata/compressor/deflater/DeflaterUtil.java
@@ -31,15 +31,15 @@ public class DeflaterUtil {
         if (bytes == null) {
             throw new NullPointerException("bytes is null");
         }
-        int lenght = 0;
+        int length = 0;
         Deflater deflater = new Deflater();
         deflater.setInput(bytes);
         deflater.finish();
         byte[] outputBytes = new byte[BUFFER_SIZE];
         try (ByteArrayOutputStream bos = new ByteArrayOutputStream()) {
             while (!deflater.finished()) {
-                lenght = deflater.deflate(outputBytes);
-                bos.write(outputBytes, 0, lenght);
+                length = deflater.deflate(outputBytes);
+                bos.write(outputBytes, 0, length);
             }
             deflater.end();
             return bos.toByteArray();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to