lz4-java icon indicating copy to clipboard operation
lz4-java copied to clipboard

Clean up interfaces and deprecated methods

Open lJoublanc opened this issue 7 years ago • 3 comments

There are a number of interfaces: LZ4Decompressor, LZ4Compressor, LZ4UnknownSizeDecompressor. These all have abstract compress/decompress methods that are marked deprecated. Could this be cleaned-up? Shouldn't it be possible to just pass around the first two interfaces without caring which implementation we're using?

lJoublanc avatar Aug 29 '18 12:08 lJoublanc

LZ4Compressor is not an interface and is not deprecated. I think LZ4Decompressor and LZ4UnknownSizeDecompressor can be deleted when lz4-java 2.0 is released some time in the future.

odaira avatar Sep 13 '18 21:09 odaira

Sorry, you are correct. I should have been specific. I meant LZ4Decompressor, and it's one method decompress.

Deprecated. 
Use LZ4FastDecompressor instead.

@Deprecated
public interface LZ4Decompressor

lJoublanc avatar Sep 17 '18 10:09 lJoublanc

No problem at all. I'll add it to my TODO list for lz4-java 2.0.

odaira avatar Sep 17 '18 17:09 odaira