Ensure HeapBytesStore has final fields for correct visibility, https://github.com/OpenHFT/Chronicle-Wire/issues/137

This commit is contained in:
Peter Lawrey
2019-05-08 19:27:15 +01:00
parent 0b09733cc9
commit 6711903d2c
4 changed files with 21 additions and 18 deletions
@@ -29,7 +29,12 @@ public enum ZeroBytesStore implements BytesStore<ZeroBytesStore, Void> {
@Override
public long addressForWrite(long offset) throws UnsupportedOperationException, BufferOverflowException {
throw new UnsupportedOperationException("todo");
throw new UnsupportedOperationException("Cannot get the address of nothing");
}
@Override
public long addressForWritePosition() throws UnsupportedOperationException, BufferOverflowException {
throw new UnsupportedOperationException("Cannot get the address of nothing");
}
@Override