Fix a couple of API changes.

This commit is contained in:
Peter Lawrey
2016-04-17 19:36:06 +01:00
parent b90ebc3b39
commit 35c721419c
3 changed files with 20 additions and 4 deletions
@@ -28,8 +28,6 @@ import net.openhft.chronicle.hash.serialization.SizeMarshaller;
import net.openhft.chronicle.hash.serialization.SizedReader;
import net.openhft.chronicle.hash.serialization.impl.SerializationBuilder;
import net.openhft.chronicle.map.impl.*;
import net.openhft.chronicle.map.impl.CompiledMapIterationContext;
import net.openhft.chronicle.map.impl.CompiledMapQueryContext;
import net.openhft.chronicle.map.impl.ret.InstanceReturnValue;
import net.openhft.chronicle.set.ChronicleSet;
import net.openhft.chronicle.wire.WireIn;
@@ -67,6 +67,11 @@ public enum ZeroBytesStore implements BytesStore<ZeroBytesStore, Void> {
return false;
}
@Override
public boolean sharedMemory() {
return false;
}
@Override
public ZeroBytesStore copy() {
throw new UnsupportedOperationException();
@@ -83,6 +88,13 @@ public enum ZeroBytesStore implements BytesStore<ZeroBytesStore, Void> {
throw new UnsupportedOperationException();
}
@Override
public void move(long from, long to, long length) {
if (length != 0)
throw new UnsupportedOperationException();
}
@Override
public long address(long offset) throws UnsupportedOperationException {
return offset;