Fix typo in variable name (#854)

* Fix typo in variable name

* Fix compile error
This commit is contained in:
Aayush Atharva 2021-01-08 17:54:44 +05:30 committed by GitHub
parent 0e8afdc968
commit f16845614d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ import java.util.ArrayList;
* Base class for InputStream / Channel implementations. * Base class for InputStream / Channel implementations.
*/ */
public class Decoder { public class Decoder {
private static final ByteBuffer EMPTY_BUFER = ByteBuffer.allocate(0); private static final ByteBuffer EMPTY_BUFFER = ByteBuffer.allocate(0);
private final ReadableByteChannel source; private final ReadableByteChannel source;
private final DecoderJNI.Wrapper decoder; private final DecoderJNI.Wrapper decoder;
ByteBuffer buffer; ByteBuffer buffer;
@ -91,7 +91,7 @@ public class Decoder {
} }
if (bytesRead == 0) { if (bytesRead == 0) {
// No input data is currently available. // No input data is currently available.
buffer = EMPTY_BUFER; buffer = EMPTY_BUFFER;
return 0; return 0;
} }
decoder.push(bytesRead); decoder.push(bytesRead);