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
@@ -39,8 +39,10 @@ public interface HashSplitting extends Marshallable {
int segmentIndex(long hash);
long segmentHash(long hash);
enum ForSingleSegment implements HashSplitting, EnumMarshallable<ForSingleSegment> {
INSTANCE;
final class ForSingleSegment implements HashSplitting, EnumMarshallable<ForSingleSegment> {
public static final ForSingleSegment INSTANCE = new ForSingleSegment();
private ForSingleSegment() {}
@Override
public int segmentIndex(long hash) {