Split AbstractMarshallable into SelfDescribingMarshallable and BytesInBinaryMarshallable, closes https://github.com/OpenHFT/Chronicle-Wire/issues/151

This commit is contained in:
Peter Lawrey
2019-12-04 09:23:33 +00:00
parent 1c01ce8845
commit 2f03b71252
2 changed files with 8 additions and 8 deletions
@@ -16,7 +16,7 @@
package net.openhft.chronicle.map;
import net.openhft.chronicle.wire.AbstractMarshallable;
import net.openhft.chronicle.wire.SelfDescribingMarshallable;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
@@ -34,11 +34,11 @@ public final class AbstractMarshallableKeyValueTest {
assertThat(map.get(new Key()).number, is(new Value().number));
}
private static final class Key extends AbstractMarshallable {
private static final class Key extends SelfDescribingMarshallable {
private String k = "key";
}
private static final class Value extends AbstractMarshallable {
private Integer number = Integer.valueOf(17);
private static final class Value extends SelfDescribingMarshallable {
private Integer number = 17;
}
}
@@ -1,7 +1,7 @@
package net.openhft.chronicle.map;
import net.openhft.chronicle.wire.AbstractBytesMarshallable;
import net.openhft.chronicle.wire.AbstractMarshallable;
import net.openhft.chronicle.wire.BytesInBinaryMarshallable;
import net.openhft.chronicle.wire.SelfDescribingMarshallable;
import org.junit.Test;
import java.io.Serializable;
@@ -108,7 +108,7 @@ public class SerializableTest {
}
}
static class Bar extends AbstractBytesMarshallable {
static class Bar extends BytesInBinaryMarshallable {
final String x;
@@ -117,7 +117,7 @@ public class SerializableTest {
}
}
static class Bar2 extends AbstractMarshallable {
static class Bar2 extends SelfDescribingMarshallable {
final String x;