formatting
[iotcloud.git] / src / java / iotcloud / Entry.java
index 881e5cea22969c3681e38b3ffbaa3d148cf51fb2..ea4e118687fd83ef17f1ba107591f3e01bccf3e7 100644 (file)
@@ -12,18 +12,22 @@ abstract class Entry implements Liveness {
        Entry(Slot _parentslot) {
                parentslot = _parentslot;
        }
-       
+
        static Entry decode(Slot slot, ByteBuffer bb) {
                byte type=bb.get();
                switch(type) {
                case TypeKeyValue:
                        return KeyValue.decode(slot, bb);
+
                case TypeLastMessage:
                        return LastMessage.decode(slot, bb);
+
                case TypeRejectedMessage:
                        return RejectedMessage.decode(slot, bb);
+
                case TypeTableStatus:
                        return TableStatus.decode(slot, bb);
+
                default:
                        throw new Error("Unrecognized Entry Type: "+type);
                }
@@ -37,7 +41,7 @@ abstract class Entry implements Liveness {
                islive = false;
                parentslot.decrementLiveCount();
        }
-       
+
        abstract void encode(ByteBuffer bb);
 
        abstract int getSize();