Skip to content

Commit 0766186

Browse files
cxormjojochuang
authored andcommitted
HADOOP-16336. finish variable is unused in ZStandardCompressor. Contributed by cxorm.
1 parent cda9f33 commit 0766186

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zstd/ZStandardCompressor.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class ZStandardCompressor implements Compressor {
4949
private int uncompressedDirectBufOff = 0, uncompressedDirectBufLen = 0;
5050
private boolean keepUncompressedBuf = false;
5151
private ByteBuffer compressedDirectBuf = null;
52-
private boolean finish, finished;
52+
private boolean finished;
5353
private long bytesRead = 0;
5454
private long bytesWritten = 0;
5555

@@ -180,7 +180,6 @@ public boolean needsInput() {
180180

181181
@Override
182182
public void finish() {
183-
finish = true;
184183
}
185184

186185
@Override
@@ -266,7 +265,6 @@ public long getBytesRead() {
266265
public void reset() {
267266
checkStream();
268267
init(level, stream);
269-
finish = false;
270268
finished = false;
271269
bytesRead = 0;
272270
bytesWritten = 0;

0 commit comments

Comments
 (0)