You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by we...@apache.org on 2019/06/15 03:05:30 UTC

[hadoop] branch trunk updated: HADOOP-16336. finish variable is unused in ZStandardCompressor. Contributed by cxorm.

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

weichiu pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 0766186  HADOOP-16336. finish variable is unused in ZStandardCompressor. Contributed by cxorm.
0766186 is described below

commit 076618677d3524187e5be4b5401e25a9ca154230
Author: cxorm <li...@gmail.com>
AuthorDate: Sat Jun 15 11:05:20 2019 +0800

    HADOOP-16336. finish variable is unused in ZStandardCompressor. Contributed by cxorm.
---
 .../java/org/apache/hadoop/io/compress/zstd/ZStandardCompressor.java  | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zstd/ZStandardCompressor.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zstd/ZStandardCompressor.java
index 7445502..716a198 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zstd/ZStandardCompressor.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zstd/ZStandardCompressor.java
@@ -49,7 +49,7 @@ public class ZStandardCompressor implements Compressor {
   private int uncompressedDirectBufOff = 0, uncompressedDirectBufLen = 0;
   private boolean keepUncompressedBuf = false;
   private ByteBuffer compressedDirectBuf = null;
-  private boolean finish, finished;
+  private boolean finished;
   private long bytesRead = 0;
   private long bytesWritten = 0;
 
@@ -180,7 +180,6 @@ public class ZStandardCompressor implements Compressor {
 
   @Override
   public void finish() {
-    finish = true;
   }
 
   @Override
@@ -266,7 +265,6 @@ public class ZStandardCompressor implements Compressor {
   public void reset() {
     checkStream();
     init(level, stream);
-    finish = false;
     finished = false;
     bytesRead = 0;
     bytesWritten = 0;


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org