From edca5d92c2a39a964493045f3949d26ec5daa078 Mon Sep 17 00:00:00 2001 From: Jerry Shea Date: Fri, 20 Aug 2021 08:46:26 +1000 Subject: [PATCH] reduce calls to deprecated methods --- .../main/java/net/openhft/chronicle/map/perf/MapJLBHTest.java | 4 ++-- .../openhft/chronicle/map/perf/NonPersistedMapJLBHTest.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmark/src/main/java/net/openhft/chronicle/map/perf/MapJLBHTest.java b/benchmark/src/main/java/net/openhft/chronicle/map/perf/MapJLBHTest.java index bc7eb1f9b..d7b7b64f8 100644 --- a/benchmark/src/main/java/net/openhft/chronicle/map/perf/MapJLBHTest.java +++ b/benchmark/src/main/java/net/openhft/chronicle/map/perf/MapJLBHTest.java @@ -18,7 +18,7 @@ package net.openhft.chronicle.map.perf; import net.openhft.chronicle.bytes.Byteable; -import net.openhft.chronicle.bytes.NativeBytesStore; +import net.openhft.chronicle.bytes.BytesStore; import net.openhft.chronicle.core.Jvm; import net.openhft.chronicle.core.OS; import net.openhft.chronicle.core.io.IOTools; @@ -83,7 +83,7 @@ public class MapJLBHTest implements JLBHTask { Byteable byteable = (Byteable) datum; long capacity = byteable.maxSize(); - byteable.bytesStore(NativeBytesStore.nativeStore(capacity), 0, capacity); + byteable.bytesStore(BytesStore.nativeStore(capacity), 0, capacity); try { write = ChronicleMapBuilder.of(Long.class, IFacade0.class) diff --git a/benchmark/src/main/java/net/openhft/chronicle/map/perf/NonPersistedMapJLBHTest.java b/benchmark/src/main/java/net/openhft/chronicle/map/perf/NonPersistedMapJLBHTest.java index f80ddbbc2..8625689f4 100644 --- a/benchmark/src/main/java/net/openhft/chronicle/map/perf/NonPersistedMapJLBHTest.java +++ b/benchmark/src/main/java/net/openhft/chronicle/map/perf/NonPersistedMapJLBHTest.java @@ -18,7 +18,7 @@ package net.openhft.chronicle.map.perf; import net.openhft.chronicle.bytes.Byteable; -import net.openhft.chronicle.bytes.NativeBytesStore; +import net.openhft.chronicle.bytes.BytesStore; import net.openhft.chronicle.core.io.IOTools; import net.openhft.chronicle.jlbh.JLBH; import net.openhft.chronicle.jlbh.JLBHOptions; @@ -65,7 +65,7 @@ public class NonPersistedMapJLBHTest implements JLBHTask { Byteable byteable = (Byteable) datum; long capacity = byteable.maxSize(); - byteable.bytesStore(NativeBytesStore.nativeStore(capacity), 0, capacity); + byteable.bytesStore(BytesStore.nativeStore(capacity), 0, capacity); write = read = ChronicleMapBuilder.of(Long.class, IFacade.class).constantValueSizeBySample(datum).entries(1_100_000).create(); }