Use updated BytesMarshallable with default implementations

This commit is contained in:
Peter Lawrey
2016-04-22 15:30:35 +01:00
parent f3a511e51e
commit 8ef1f1e647
6 changed files with 40 additions and 52 deletions
@@ -16,7 +16,6 @@
package net.openhft.chronicle.map;
import net.openhft.chronicle.bytes.Bytes;
import net.openhft.chronicle.bytes.BytesMarshallable;
import org.junit.Assert;
import org.junit.Test;
@@ -37,7 +36,6 @@ public class BytesMarshallableValueTest {
}
public static class Value implements BytesMarshallable {
int x;
String foo;
@@ -46,19 +44,6 @@ public class BytesMarshallableValueTest {
this.foo = foo;
}
public Value() {
}
@Override
public void readMarshallable(Bytes<?> bytes) {
x = bytes.readInt();
foo = bytes.readUtf8();
}
@Override
public void writeMarshallable(Bytes bytes) {
bytes.writeInt(x);
bytes.writeUtf8(foo);
}
}
}