Update to newer Core, Bytes & Wire dependency versions; make all enum marshallers ordinary classes with static INSTANCE fields, because of difficulties with Wire serialization of enums

This commit is contained in:
leventov
2016-06-24 17:49:34 +07:00
parent fc6e2af7e4
commit 4cffff652f
23 changed files with 138 additions and 55 deletions
@@ -32,9 +32,11 @@ import java.util.zip.InflaterInputStream;
/**
* Created by peter on 24/10/14.
*/
public enum DeflatorStringMarshaller implements BytesReader<CharSequence>,
public final class DeflatorStringMarshaller implements BytesReader<CharSequence>,
BytesWriter<CharSequence>, EnumMarshallable<DeflatorStringMarshaller> {
INSTANCE;
public static final DeflatorStringMarshaller INSTANCE = new DeflatorStringMarshaller();
private DeflatorStringMarshaller() {}
private static final StringFactory STRING_FACTORY = getStringFactory();