From 1c0dfd04bc5dded9cd90d6bf1eca797eccfb775b Mon Sep 17 00:00:00 2001 From: Peter Lawrey Date: Thu, 10 Dec 2020 11:37:59 +0000 Subject: [PATCH] Reduce System.out in tests and in general, https://github.com/OpenHFT/OpenHFT/issues/42 --- .../chronicle/map/impl/stage/entry/MapEntryStages.java | 8 ++++---- .../java/net/openhft/chronicle/map/LargeEntriesTest.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/openhft/chronicle/map/impl/stage/entry/MapEntryStages.java b/src/main/java/net/openhft/chronicle/map/impl/stage/entry/MapEntryStages.java index dd4826e70..0c167463d 100644 --- a/src/main/java/net/openhft/chronicle/map/impl/stage/entry/MapEntryStages.java +++ b/src/main/java/net/openhft/chronicle/map/impl/stage/entry/MapEntryStages.java @@ -165,10 +165,10 @@ public abstract class MapEntryStages extends HashEntryStages // bytes.writeLong(state); // boolean newValueSizeIsPowerOf2 = ((newValueSize - 1L) & newValueSize) != 0; // if (!newValueSizeIsPowerOf2 || newValueSize > 8L) { -// // if the new value size is 1, 2, 4, or 8, it is written not atomically only if -// // the user provided own marshaller and writes value byte-by-byte, that is very -// // unlikely. in this case the user should update acquire write lock before write -// // updates himself +// if the new value size is 1, 2, 4, or 8, it is written not atomically only if +// the user provided own marshaller and writes value byte-by-byte, that is very +// unlikely. in this case the user should update acquire write lock before write +// updates himself // upgradeToWriteLock(); // } } diff --git a/src/test/java/net/openhft/chronicle/map/LargeEntriesTest.java b/src/test/java/net/openhft/chronicle/map/LargeEntriesTest.java index fc5b9fe61..feec12dec 100644 --- a/src/test/java/net/openhft/chronicle/map/LargeEntriesTest.java +++ b/src/test/java/net/openhft/chronicle/map/LargeEntriesTest.java @@ -86,7 +86,7 @@ public class LargeEntriesTest { // String value = generateValue(entrySize); // DirectBytes bytes = DirectStore.allocate(entrySize / 6).bytes(); // for (int i = 0; i < 5; i++) { -// // warmup to compression. +// warmup to compression. // bytes.clear(); // SnappyStringMarshaller.INSTANCE.write(bytes, value); // bytes.flip();