HADOOP-11674. oneByteBuf in CryptoInputStream and CryptoOutputStream should be non static. (Sean Busbey via yliu)
This commit is contained in:
parent
74a4754d1c
commit
5e9b8144d5
@ -1041,6 +1041,9 @@ Release 2.7.0 - UNRELEASED
|
|||||||
HADOOP-11605. FilterFileSystem#create with ChecksumOpt should propagate it
|
HADOOP-11605. FilterFileSystem#create with ChecksumOpt should propagate it
|
||||||
to wrapped FS. (gera)
|
to wrapped FS. (gera)
|
||||||
|
|
||||||
|
HADOOP-11674. oneByteBuf in CryptoInputStream and CryptoOutputStream
|
||||||
|
should be non static. (Sean Busbey via yliu)
|
||||||
|
|
||||||
Release 2.6.1 - UNRELEASED
|
Release 2.6.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -60,7 +60,7 @@ public class CryptoInputStream extends FilterInputStream implements
|
|||||||
Seekable, PositionedReadable, ByteBufferReadable, HasFileDescriptor,
|
Seekable, PositionedReadable, ByteBufferReadable, HasFileDescriptor,
|
||||||
CanSetDropBehind, CanSetReadahead, HasEnhancedByteBufferAccess,
|
CanSetDropBehind, CanSetReadahead, HasEnhancedByteBufferAccess,
|
||||||
ReadableByteChannel {
|
ReadableByteChannel {
|
||||||
private static final byte[] oneByteBuf = new byte[1];
|
private final byte[] oneByteBuf = new byte[1];
|
||||||
private final CryptoCodec codec;
|
private final CryptoCodec codec;
|
||||||
private final Decryptor decryptor;
|
private final Decryptor decryptor;
|
||||||
private final int bufferSize;
|
private final int bufferSize;
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
@InterfaceStability.Evolving
|
@InterfaceStability.Evolving
|
||||||
public class CryptoOutputStream extends FilterOutputStream implements
|
public class CryptoOutputStream extends FilterOutputStream implements
|
||||||
Syncable, CanSetDropBehind {
|
Syncable, CanSetDropBehind {
|
||||||
private static final byte[] oneByteBuf = new byte[1];
|
private final byte[] oneByteBuf = new byte[1];
|
||||||
private final CryptoCodec codec;
|
private final CryptoCodec codec;
|
||||||
private final Encryptor encryptor;
|
private final Encryptor encryptor;
|
||||||
private final int bufferSize;
|
private final int bufferSize;
|
||||||
|
Loading…
Reference in New Issue
Block a user